summaryrefslogtreecommitdiffstats
path: root/t/t5512-ls-remote.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-01-29 21:47:54 +0100
committerJunio C Hamano <gitster@pobox.com>2019-01-29 21:47:54 +0100
commitd3b017822d6b37523a9ee2d9d5bc9a2513221ae5 (patch)
tree9a93713f8de0740a53b97491cf3164ce6e2e0f79 /t/t5512-ls-remote.sh
parentMerge branch 'jk/save-getenv-result' (diff)
parentupload-pack: support hidden refs with protocol v2 (diff)
downloadgit-d3b017822d6b37523a9ee2d9d5bc9a2513221ae5.tar.xz
git-d3b017822d6b37523a9ee2d9d5bc9a2513221ae5.zip
Merge branch 'jk/proto-v2-hidden-refs-fix'
The v2 upload-pack protocol implementation failed to honor hidden-ref configuration, which has been corrected. An earlier attempt reverted out of 'next'. * jk/proto-v2-hidden-refs-fix: upload-pack: support hidden refs with protocol v2
Diffstat (limited to 't/t5512-ls-remote.sh')
-rwxr-xr-xt/t5512-ls-remote.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t5512-ls-remote.sh b/t/t5512-ls-remote.sh
index cd9e60632d..ced15ae122 100755
--- a/t/t5512-ls-remote.sh
+++ b/t/t5512-ls-remote.sh
@@ -204,6 +204,12 @@ test_expect_success 'overrides work between mixed transfer/upload-pack hideRefs'
grep refs/tags/magic actual
'
+test_expect_success 'protocol v2 supports hiderefs' '
+ test_config uploadpack.hiderefs refs/tags &&
+ git -c protocol.version=2 ls-remote . >actual &&
+ ! grep refs/tags actual
+'
+
test_expect_success 'ls-remote --symref' '
git fetch origin &&
cat >expect <<-EOF &&