summaryrefslogtreecommitdiff
path: root/t/t3700-add.sh
diff options
context:
space:
mode:
authorAlex Riesen <raa.lkml@gmail.com>2008-08-15 09:32:30 +0200
committerJunio C Hamano <gitster@pobox.com>2008-08-15 01:38:37 -0700
commit8134a003e06b5f216cdc1f14acc70d8cab284cf9 (patch)
tree0a3b95da428b88aac430e1753fbdf58b56a004d9 /t/t3700-add.sh
parent5a13c8f6f7ef7463ddaa3dd7144bf66af4fcd9be (diff)
downloadgit-8134a003e06b5f216cdc1f14acc70d8cab284cf9.tar.gz
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>
Diffstat (limited to 't/t3700-add.sh')
-rwxr-xr-xt/t3700-add.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/t/t3700-add.sh b/t/t3700-add.sh
index 77a782c9ad..2ac93a346d 100755
--- a/t/t3700-add.sh
+++ b/t/t3700-add.sh
@@ -222,11 +222,11 @@ test_expect_success 'git add (add.ignore-errors = false)' '
! ( 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 )
'