DORMANTno replies

[PATCH] disable post-checkout test on Cygwin

From: Alex Riesen <hidden>
Date: 2016-06-15 22:46:24

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 <redacted>
---
 t/t5403-post-checkout-hook.sh |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

2009/3/3 Jeff King [off-list ref]:
+mkdir -p templates/hooks
+cat >templates/hooks/post-checkout <<'EOF'
+#!/bin/sh
+echo $@ > $GIT_DIR/post-checkout.args
+EOF
+chmod +x templates/hooks/post-checkout
+
+test_expect_success 'post-checkout hook is triggered by clone' '
+       git clone --template=templates . clone3 &&
+       test -f clone3/.git/post-checkout.args
+'
This is broken on cygwin: the hook script won't be not marked executable
by copy_file, because the native Win32 stat(2) routines are used and
report the mode of source file as 0666.

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help