From: Stefan Beller Date: Tue, 24 Feb 2015 03:12:42 GMT Subject: [PATCH 3/3] receive-pack: enable protocol v2 Message-ID: <1424747562-5446-4-git-send-email-sbeller@google.com> In-Reply-To: <1424747562-5446-1-git-send-email-sbeller@google.com> This string would tell the client that git-receive-packv2 as well as git-receive-pack would be supported. Signed-off-by: Stefan Beller --- builtin/receive-pack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/receive-pack.c b/builtin/receive-pack.c index a077b1d..dcb231b 100644 --- a/builtin/receive-pack.c +++ b/builtin/receive-pack.c @@ -71,7 +71,7 @@ static long nonce_stamp_slop; static unsigned long nonce_stamp_slop_limit; static struct ref_transaction *transaction; -static const char *advertised_versions = NULL; +static const char *advertised_versions = "v2,"; static enum deny_action parse_deny_action(const char *var, const char *value) { -- 2.3.0.81.gc37f363