Skip to content

Commit 7e7d71e

Browse files
committed
Merge branch 'jk/pathspec-literal'
Finishing touches to fix a test breakage on Windows * jk/pathspec-literal: t6130-pathspec-noglob: Windows does not allow a file named "f*"
2 parents 2d0029e + 6af95e8 commit 7e7d71e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

t/t6130-pathspec-noglob.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ test_description='test globbing (and noglob) of pathspec limiting'
66
test_expect_success 'create commits with glob characters' '
77
test_commit unrelated bar &&
88
test_commit vanilla foo &&
9-
test_commit star "f*" &&
9+
# insert file "f*" in the commit, but in a way that avoids
10+
# the name "f*" in the worktree, because it is not allowed
11+
# on Windows (the tests below do not depend on the presence
12+
# of the file in the worktree)
13+
git update-index --add --cacheinfo 100644 "$(git rev-parse HEAD:foo)" "f*" &&
14+
test_tick &&
15+
git commit -m star &&
1016
test_commit bracket "f[o][o]"
1117
'
1218

0 commit comments

Comments
 (0)