@matheusbsbs / matheus-bagliano / commits / 8134a003e0
Fork 0

Fix t3700 on filesystems which do not support question marks in names

Use square brackets instead. And the prominent example of the deficiency are, as usual, the filesystems of Microsoft house. Signed-off-by: Alex Riesen <raa.lkml@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Alex Riesen committed Aug 15, 2008 at 09:32 UTC 8134a003e06b5f216cdc1f14acc70d8cab284cf9
1 file changed +4 -4
t/t3700-add.sh
+4 -4
@@ -222,11 +222,11 @@ test_expect_success 'git add (add.ignore-errors = false)' '
222 ! ( git ls-files foo1 | grep foo1 )
223 '
224
225 -test_expect_success 'git add '\''fo\?bar'\'' ignores foobar' '
225 +test_expect_success 'git add '\''fo\[ou\]bar'\'' ignores foobar' '
226 git reset --hard &&
227 - touch fo\?bar foobar &&
228 - git add '\''fo\?bar'\'' &&
229 - git ls-files fo\?bar | grep -F fo\?bar &&
227 + touch fo\[ou\]bar foobar &&
228 + git add '\''fo\[ou\]bar'\'' &&
229 + git ls-files fo\[ou\]bar | grep -F fo\[ou\]bar &&
230 ! ( git ls-files foobar | grep foobar )
231 '
232