log: read gpg settings for signed commit verification
[gitweb.git] / t / t5512-ls-remote.sh
index d16e5d384a8966bc04e9fde6e92bd41818526aab..321c3e5234fdec35f5925e40a18ae74d1cba55c0 100755 (executable)
@@ -126,4 +126,16 @@ test_expect_success 'Report match with --exit-code' '
        test_cmp expect actual
 '
 
+for configsection in transfer uploadpack
+do
+       test_expect_success "Hide some refs with $configsection.hiderefs" '
+               test_config $configsection.hiderefs refs/tags &&
+               git ls-remote . >actual &&
+               test_unconfig $configsection.hiderefs &&
+               git ls-remote . |
+               sed -e "/       refs\/tags\//d" >expect &&
+               test_cmp expect actual
+       '
+done
+
 test_done