summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2018-08-15 15:08:23 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-08-15 15:08:23 -0700
commit2d7a20258f791485d0fa0094e930eee094a77076 (patch)
tree8875f1154aeccdb091c299c33e20c558aee91d58 /t
parentMerge branch 'jk/core-use-replace-refs' (diff)
parentclone: send ref-prefixes when using protocol v2 (diff)
downloadtgif-2d7a20258f791485d0fa0094e930eee094a77076.tar.xz
Merge branch 'bw/clone-ref-prefixes'
The wire-protocol v2 relies on the client to send "ref prefixes" to limit the bandwidth spent on the initial ref advertisement. "git clone" when learned to speak v2 forgot to do so, which has been corrected. * bw/clone-ref-prefixes: clone: send ref-prefixes when using protocol v2
Diffstat (limited to 't')
-rwxr-xr-xt/t5702-protocol-v2.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/t/t5702-protocol-v2.sh b/t/t5702-protocol-v2.sh
index a4fe6508bd..9ae560eb2a 100755
--- a/t/t5702-protocol-v2.sh
+++ b/t/t5702-protocol-v2.sh
@@ -181,7 +181,12 @@ test_expect_success 'clone with file:// using protocol v2' '
test_cmp expect actual &&
# Server responded using protocol v2
- grep "clone< version 2" log
+ grep "clone< version 2" log &&
+
+ # Client sent ref-prefixes to filter the ref-advertisement
+ grep "ref-prefix HEAD" log &&
+ grep "ref-prefix refs/heads/" log &&
+ grep "ref-prefix refs/tags/" log
'
test_expect_success 'fetch with file:// using protocol v2' '