diff options
Diffstat (limited to 't')
-rwxr-xr-x | t/t3700-add.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t3700-add.sh b/t/t3700-add.sh index e83fa1f689..fcbc203e71 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\?bar'\'' ignores foobar' ' + git reset --hard && + touch fo\?bar foobar && + git add '\''fo\?bar'\'' && + git ls-files fo\?bar | grep -F fo\?bar && + ! ( git ls-files foobar | grep foobar ) +' + test_done |