! ( git ls-files foo1 | grep foo1 )
'
-test_expect_success 'git add '\''fo\?bar'\'' ignores foobar' '
+test_expect_success 'git add '\''fo\[ou\]bar'\'' ignores foobar' '
git reset --hard &&
- touch fo\?bar foobar &&
- git add '\''fo\?bar'\'' &&
- git ls-files fo\?bar | grep -F fo\?bar &&
+ touch fo\[ou\]bar foobar &&
+ git add '\''fo\[ou\]bar'\'' &&
+ git ls-files fo\[ou\]bar | grep -F fo\[ou\]bar &&
! ( git ls-files foobar | grep foobar )
'