GIT 1.5.6.6
[gitweb.git] / t / t3700-add.sh
index e83fa1f6894dd13eb11cae6afb8ecbd3dcb999db..fcbc203e71cff29de6268e26ff680fef9837bd34 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