upload-pack: support hidden refs with protocol v2
[gitweb.git] / t / t5512-ls-remote.sh
index bc5703ff9ba166b928199abf3085ff55a8fc09f1..6547a394e79c0118dde96ed4f05b7954bb09f8bf 100755 (executable)
@@ -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 &&