built-in rebase --autostash: leave the current branch alone if possible
[gitweb.git] / t / t6300-for-each-ref.sh
index 48379aa0ee874b0250e2348d47eded09713a0a79..e0496da812f34df16ef7c3417788f9096ddc1e0f 100755 (executable)
@@ -795,4 +795,15 @@ test_expect_success ':remotename and :remoteref' '
        )
 '
 
+test_expect_success 'for-each-ref --ignore-case ignores case' '
+       >expect &&
+       git for-each-ref --format="%(refname)" refs/heads/MASTER >actual &&
+       test_cmp expect actual &&
+
+       echo refs/heads/master >expect &&
+       git for-each-ref --format="%(refname)" --ignore-case \
+               refs/heads/MASTER >actual &&
+       test_cmp expect actual
+'
+
 test_done