Skip to content

Commit 66df3ee

Browse files
committed
Yet another test
Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 1fbdd26 commit 66df3ee

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

t/test-lib-functions.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,10 @@ test_commit_bulk () {
492492
# of a file in the working directory and add it to the index.
493493

494494
test_chmod () {
495-
chmod "$@" &&
495+
if test_have_prereq !MINGW # no-op on Windows
496+
then
497+
chmod "$@"
498+
fi &&
496499
git update-index --add "--chmod=$@"
497500
}
498501

@@ -548,7 +551,10 @@ write_script () {
548551
echo "#!${2-"$SHELL_PATH"}" &&
549552
cat
550553
} >"$1" &&
551-
chmod +x "$1"
554+
if test_have_prereq !MINGW
555+
then
556+
chmod +x "$1"
557+
fi
552558
}
553559

554560
# Usage: test_hook [options] <hook-name> <<-\EOF

t/test-lib.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1546,10 +1546,6 @@ case $uname_s in
15461546
builtin pwd -W
15471547
}
15481548
# no POSIX permissions
1549-
chmod () {
1550-
# no-op; incompatible with Windows' permission model
1551-
echo "skipping chmod $*" >&2
1552-
}
15531549
# backslashes in pathspec are converted to '/'
15541550
# exec does not inherit the PID
15551551
test_set_prereq MINGW

0 commit comments

Comments
 (0)