Skip to content

Commit 1fbdd26

Browse files
committed
Another test
The previous test did not do anything, actually, because it figured that there was a successful run for a tree-same commit... Signed-off-by: Johannes Schindelin <[email protected]>
1 parent f1079c9 commit 1fbdd26

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

t/test-lib-functions.sh

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

494494
test_chmod () {
495-
if test_have_prereq !MINGW
496-
then
497-
chmod "$@"
498-
fi &&
495+
chmod "$@" &&
499496
git update-index --add "--chmod=$@"
500497
}
501498

@@ -551,10 +548,7 @@ write_script () {
551548
echo "#!${2-"$SHELL_PATH"}" &&
552549
cat
553550
} >"$1" &&
554-
if test_have_prereq !MINGW
555-
then
556-
chmod +x "$1"
557-
fi
551+
chmod +x "$1"
558552
}
559553

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

t/test-lib.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1546,6 +1546,10 @@ 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+
}
15491553
# backslashes in pathspec are converted to '/'
15501554
# exec does not inherit the PID
15511555
test_set_prereq MINGW

0 commit comments

Comments
 (0)