Skip to content

Commit ee0f3e2

Browse files
peffgitster
authored andcommitted
t6300: add a test for --ignore-case
The --ignore-case option was added by 3bb16a8 (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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent fc54c1a commit ee0f3e2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

t/t6300-for-each-ref.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -795,4 +795,15 @@ test_expect_success ':remotename and :remoteref' '
795795
)
796796
'
797797

798+
test_expect_failure 'for-each-ref --ignore-case ignores case' '
799+
>expect &&
800+
git for-each-ref --format="%(refname)" refs/heads/MASTER >actual &&
801+
test_cmp expect actual &&
802+
803+
echo refs/heads/master >expect &&
804+
git for-each-ref --format="%(refname)" --ignore-case \
805+
refs/heads/MASTER >actual &&
806+
test_cmp expect actual
807+
'
808+
798809
test_done

0 commit comments

Comments
 (0)