{"thread":{"id":"50484","subject":"git can't add ignored file if GIT_ICASE_PATHSPECS=1","startedAt":"2019-02-12T17:20:02Z","lastAt":"2019-02-12T17:27:16Z","messageCount":2,"participants":["Giuseppe Crino'"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"369170","messageId":"20190212171952.GA343@evil.localdomain","threadId":"50484","inReplyTo":null,"subject":"git can't add ignored file if GIT_ICASE_PATHSPECS=1","fromName":"Giuseppe Crino'","fromEmail":"giuscri@gmail.com","sentAt":"2019-02-12T17:19:54Z","receivedAt":"2019-02-12T17:20:02Z","isPatch":false,"sender":{"key":"giuscri@gmail.com","avatar":"https://gravatar.com/avatar/0d6b46f6496321ee3646c8712de0b475e225f393a8c72d2c2385d7820b74dd90?d=mp&s=160"},"body":"To reproduce, apply the attached patch and run at the project root\n\n\tcd t && ./t3700-add.sh --verbose-only=13 --debug --immediate\n\nRelevant part of the output is\n\n\texpecting success:\n\t\texport GIT_ICASE_PATHSPECS=1 &&\n\t\ttouch a.if &&\n\t\ttest_must_fail git add a.?? &&\n\t\t! (git ls-files | grep \"\\\\.ig\") &&\n\t\t(git ls-files | grep a.if)\n\n\tfatal: pathspec 'a.ig' did not match any files\n\tnot ok 13 - error out when attempting to add ignored ones but add others\n\t#\n\t#               export GIT_ICASE_PATHSPECS=1 &&\n\t#               touch a.if &&\n\t#               test_must_fail git add a.?? &&\n\t#               ! (git ls-files | grep \"\\\\.ig\") &&\n\t#               (git ls-files | grep a.if)\n\nAs I understand this, it's a bug.\n\nGiuseppe\n\n\ndiff --git a/t/t3700-add.sh b/t/t3700-add.sh\nindex 37729ba258..62557e6a3d 100755\n--- a/t/t3700-add.sh\n+++ b/t/t3700-add.sh\n@@ -91,6 +91,7 @@ test_expect_success 'error out when attempting to add ignored ones without -f' '\n '\n\n test_expect_success 'error out when attempting to add ignored ones but add others' '\n+       export GIT_ICASE_PATHSPECS=1 &&\n        touch a.if &&\n        test_must_fail git add a.?? &&\n        ! (git ls-files | grep \"\\\\.ig\") &&\n"},{"id":"369172","messageId":"20190212172708.GA506@evil.localdomain","threadId":"50484","inReplyTo":"20190212171952.GA343@evil.localdomain","subject":"Re: git can't add ignored file if GIT_ICASE_PATHSPECS=1","fromName":"Giuseppe Crino'","fromEmail":"giuscri@gmail.com","sentAt":"2019-02-12T17:27:09Z","receivedAt":"2019-02-12T17:27:16Z","isPatch":false,"sender":{"key":"giuscri@gmail.com","avatar":"https://gravatar.com/avatar/0d6b46f6496321ee3646c8712de0b475e225f393a8c72d2c2385d7820b74dd90?d=mp&s=160"},"body":"I forgot to mention that the issue is present both in maint and in the master branch.\n\nOn Tue, Feb 12, 2019 at 06:19:52PM +0100, Giuseppe Crino' wrote:\n> To reproduce, apply the attached patch and run at the project root\n> \n> \tcd t && ./t3700-add.sh --verbose-only=13 --debug --immediate\n> \n> Relevant part of the output is\n> \n> \texpecting success:\n> \t\texport GIT_ICASE_PATHSPECS=1 &&\n> \t\ttouch a.if &&\n> \t\ttest_must_fail git add a.?? &&\n> \t\t! (git ls-files | grep \"\\\\.ig\") &&\n> \t\t(git ls-files | grep a.if)\n> \n> \tfatal: pathspec 'a.ig' did not match any files\n> \tnot ok 13 - error out when attempting to add ignored ones but add others\n> \t#\n> \t#               export GIT_ICASE_PATHSPECS=1 &&\n> \t#               touch a.if &&\n> \t#               test_must_fail git add a.?? &&\n> \t#               ! (git ls-files | grep \"\\\\.ig\") &&\n> \t#               (git ls-files | grep a.if)\n> \n> As I understand this, it's a bug.\n> \n> Giuseppe\n\n> diff --git a/t/t3700-add.sh b/t/t3700-add.sh\n> index 37729ba258..62557e6a3d 100755\n> --- a/t/t3700-add.sh\n> +++ b/t/t3700-add.sh\n> @@ -91,6 +91,7 @@ test_expect_success 'error out when attempting to add ignored ones without -f' '\n>  '\n> \n>  test_expect_success 'error out when attempting to add ignored ones but add others' '\n> +       export GIT_ICASE_PATHSPECS=1 &&\n>         touch a.if &&\n>         test_must_fail git add a.?? &&\n>         ! (git ls-files | grep \"\\\\.ig\") &&\n\n"}]}