We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2d0029e + 6af95e8 commit 7e7d71eCopy full SHA for 7e7d71e
t/t6130-pathspec-noglob.sh
@@ -6,7 +6,13 @@ test_description='test globbing (and noglob) of pathspec limiting'
6
test_expect_success 'create commits with glob characters' '
7
test_commit unrelated bar &&
8
test_commit vanilla foo &&
9
- test_commit star "f*" &&
+ # 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 &&
16
test_commit bracket "f[o][o]"
17
'
18
0 commit comments