X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft3700-add.sh;h=9f6454d2ffa22ef8a207b1a4e5e2ba156e84cdb9;hb=b452cc16d85ea9de7d3f15c83a917b5534a91120;hp=7d123d17fc156c61a8e85a399c3762e8075485de;hpb=7e4ad908721445b073f3b4ecad55bbd78f032cdc;p=git.git diff --git a/t/t3700-add.sh b/t/t3700-add.sh index 7d123d17f..9f6454d2f 100755 --- a/t/t3700-add.sh +++ b/t/t3700-add.sh @@ -222,4 +222,12 @@ test_expect_success 'git add (add.ignore-errors = false)' ' ! ( git ls-files foo1 | grep foo1 ) ' +test_expect_success 'git add '\''fo\[ou\]bar'\'' ignores foobar' ' + git reset --hard && + touch fo\[ou\]bar foobar && + git add '\''fo\[ou\]bar'\'' && + git ls-files fo\[ou\]bar | fgrep fo\[ou\]bar && + ! ( git ls-files foobar | grep foobar ) +' + test_done