Skip to content

Commit d42ec12

Browse files
raalkmlgitster
authored andcommitted
disable post-checkout test on Cygwin
It is broken because of the tricks we have to play with lstat to get the bearable perfomance out of the call. Sadly, it disables access to Cygwin's executable attribute, which Windows filesystems do not have at all. Signed-off-by: Alex Riesen <raa.lkml@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 7be401e commit d42ec12

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

t/t5403-post-checkout-hook.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ test_expect_success 'post-checkout receives the right args when not switching br
7171
test $old = $new -a $flag = 0
7272
'
7373

74+
if test "$(git config --bool core.filemode)" = true; then
7475
mkdir -p templates/hooks
7576
cat >templates/hooks/post-checkout <<'EOF'
7677
#!/bin/sh
@@ -82,5 +83,6 @@ test_expect_success 'post-checkout hook is triggered by clone' '
8283
git clone --template=templates . clone3 &&
8384
test -f clone3/.git/post-checkout.args
8485
'
86+
fi
8587

8688
test_done

0 commit comments

Comments
 (0)