]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t3700-add.sh
Merge branch 'maint'
[thirdparty/git.git] / t / t3700-add.sh
index 7d123d17fc156c61a8e85a399c3762e8075485de..77a782c9ad3ec8cbcdd95cd0dd521b397846c40a 100755 (executable)
@@ -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