Skip to content

Commit 8134a00

Browse files
raalkmlgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5a13c8f commit 8134a00

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

t/t3700-add.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,11 +222,11 @@ test_expect_success 'git add (add.ignore-errors = false)' '
222222
! ( git ls-files foo1 | grep foo1 )
223223
'
224224

225-
test_expect_success 'git add '\''fo\?bar'\'' ignores foobar' '
225+
test_expect_success 'git add '\''fo\[ou\]bar'\'' ignores foobar' '
226226
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 &&
230230
! ( git ls-files foobar | grep foobar )
231231
'
232232

0 commit comments

Comments
 (0)