diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-07-24 23:50:44 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-07-24 23:50:44 +0200 |
commit | 43013305887c2b81858a0741f39872f8ed5f27d6 (patch) | |
tree | 2d93dc7033f8f452d870b9d296a009ddf859f6cd /t/t6300-for-each-ref.sh | |
parent | Merge branch 'en/t5407-rebase-m-fix' (diff) | |
parent | ref-filter: avoid backend filtering with --ignore-case (diff) | |
download | git-43013305887c2b81858a0741f39872f8ed5f27d6.tar.xz git-43013305887c2b81858a0741f39872f8ed5f27d6.zip |
Merge branch 'jk/for-each-ref-icase'
The "--ignore-case" option of "git for-each-ref" (and its friends)
did not work correctly, which has been fixed.
* jk/for-each-ref-icase:
ref-filter: avoid backend filtering with --ignore-case
for-each-ref: consistently pass WM_IGNORECASE flag
t6300: add a test for --ignore-case
Diffstat (limited to 't/t6300-for-each-ref.sh')
-rwxr-xr-x | t/t6300-for-each-ref.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/t/t6300-for-each-ref.sh b/t/t6300-for-each-ref.sh index 48379aa0ee..e0496da812 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_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 |