summaryrefslogtreecommitdiff
path: root/t/t6130-pathspec-noglob.sh
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2019-09-09 13:43:35 (GMT)
committerJohannes Schindelin <johannes.schindelin@gmx.de>2019-12-05 14:37:06 (GMT)
commit35edce205615c553fdc49bcf10b0c91f061c56c9 (patch)
tree371cddfb7f6487d73d001efdba433281e41fde22 /t/t6130-pathspec-noglob.sh
parent9102f958ee5254b10c0be72672aa3305bf4f4704 (diff)
downloadgit-35edce205615c553fdc49bcf10b0c91f061c56c9.zip
git-35edce205615c553fdc49bcf10b0c91f061c56c9.tar.gz
git-35edce205615c553fdc49bcf10b0c91f061c56c9.tar.bz2
t6130/t9350: prepare for stringent Win32 path validation
On Windows, file names cannot contain asterisks nor newline characters. In an upcoming commit, we will make this limitation explicit, disallowing even the creation of commits that introduce such file names. However, in the test scripts touched by this patch, we _know_ that those paths won't be checked out, so we _want_ to allow such file names. Happily, the stringent path validation will be guarded via the `core.protectNTFS` flag, so all we need to do is to force that flag off temporarily. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Diffstat (limited to 't/t6130-pathspec-noglob.sh')
-rwxr-xr-xt/t6130-pathspec-noglob.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t6130-pathspec-noglob.sh b/t/t6130-pathspec-noglob.sh
index 6583532..4129d9f 100755
--- a/t/t6130-pathspec-noglob.sh
+++ b/t/t6130-pathspec-noglob.sh
@@ -10,6 +10,7 @@ test_expect_success 'create commits with glob characters' '
# the name "f*" in the worktree, because it is not allowed
# on Windows (the tests below do not depend on the presence
# of the file in the worktree)
+ git config core.protectNTFS false &&
git update-index --add --cacheinfo 100644 "$(git rev-parse HEAD:foo)" "f*" &&
test_tick &&
git commit -m star &&