summaryrefslogtreecommitdiff
path: root/t/t6300-for-each-ref.sh
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2018-07-02 21:11:23 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-07-03 21:49:13 (GMT)
commitee0f3e22c61f73734f3caa6c3f5c7a224227ce38 (patch)
tree8b902cffe9e158c4bf2aa9c4d81b402d40ce3d31 /t/t6300-for-each-ref.sh
parentfc54c1af3ec09bab8b8ea09768c2da4069b7f53e (diff)
downloadgit-ee0f3e22c61f73734f3caa6c3f5c7a224227ce38.zip
git-ee0f3e22c61f73734f3caa6c3f5c7a224227ce38.tar.gz
git-ee0f3e22c61f73734f3caa6c3f5c7a224227ce38.tar.bz2
t6300: add a test for --ignore-case
The --ignore-case option was added by 3bb16a8bf2 (tag, branch, for-each-ref: add --ignore-case for sorting and filtering, 2016-12-04), but it was never tested. And indeed, it does not work due to multiple bugs (which will be fixed in subsequent patches). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6300-for-each-ref.sh')
-rwxr-xr-xt/t6300-for-each-ref.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/t/t6300-for-each-ref.sh b/t/t6300-for-each-ref.sh
index 295d147..1adb958 100755
--- a/t/t6300-for-each-ref.sh
+++ b/t/t6300-for-each-ref.sh
@@ -795,4 +795,15 @@ test_expect_success ':remotename and :remoteref' '
)
'
+test_expect_failure '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