--- t/t5500-fetch-pack.sh | 2 ++ upload-pack.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/t/t5500-fetch-pack.sh b/t/t5500-fetch-pack.sh index 18fe23c97..f39dbcab8 100755 --- a/t/t5500-fetch-pack.sh +++ b/t/t5500-fetch-pack.sh @@ -551,6 +551,7 @@ test_expect_success 'fetch-pack can fetch refs using a partial name' ' git init server && ( cd server && + git config uploadpack.advertiseRefInWant false test_commit 1 && test_commit 2 && git checkout -b one @@ -587,6 +588,7 @@ test_expect_success 'fetch-pack can fetch refs using a glob' ' git init server && ( cd server && + git config uploadpack.advertiseRefInWant false test_commit 1 && test_commit 2 && git checkout -b ona && diff --git a/upload-pack.c b/upload-pack.c index 0678c53d6..4998a8c7e 100644 --- a/upload-pack.c +++ b/upload-pack.c @@ -62,7 +62,7 @@ static int use_sideband; static int advertise_refs; static int stateless_rpc; static const char *pack_objects_hook; -static int advertise_ref_in_want; +static int advertise_ref_in_want = 1; static void reset_timeout(void) { -- 2.11.0.483.g087da7b7c-goog