File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -492,7 +492,10 @@ test_commit_bulk () {
492
492
# of a file in the working directory and add it to the index.
493
493
494
494
test_chmod () {
495
- chmod " $@ " &&
495
+ if test_have_prereq ! MINGW # no-op on Windows
496
+ then
497
+ chmod " $@ "
498
+ fi &&
496
499
git update-index --add " --chmod=$@ "
497
500
}
498
501
@@ -548,7 +551,10 @@ write_script () {
548
551
echo " #!${2-" $SHELL_PATH " } " &&
549
552
cat
550
553
} > " $1 " &&
551
- chmod +x " $1 "
554
+ if test_have_prereq ! MINGW
555
+ then
556
+ chmod +x " $1 "
557
+ fi
552
558
}
553
559
554
560
# Usage: test_hook [options] <hook-name> <<-\EOF
Original file line number Diff line number Diff line change @@ -1546,10 +1546,6 @@ case $uname_s in
1546
1546
builtin pwd -W
1547
1547
}
1548
1548
# no POSIX permissions
1549
- chmod () {
1550
- # no-op; incompatible with Windows' permission model
1551
- echo " skipping chmod $* " >&2
1552
- }
1553
1549
# backslashes in pathspec are converted to '/'
1554
1550
# exec does not inherit the PID
1555
1551
test_set_prereq MINGW
You can’t perform that action at this time.
0 commit comments