Commit 403cc9fa authored by Noam Postavsky's avatar Noam Postavsky Committed by Paul Eggert

Fix autogen.sh for separate worktrees

* autogen.sh: Use the $hooks variable in the $sample_hooks loop, instead
of assuming .git/hooks is a directory.
parent 32f5bf0c
......@@ -327,8 +327,9 @@ if test -n "$tailored_hooks$sample_hooks"; then
if test -n "$sample_hooks"; then
for hook in $sample_hooks; do
cp $cp_options -- "$hooks/$hook.sample" "$hooks/$hook" || exit
chmod a-w .git/hooks/$hook || exit
dst=$hooks/$hook
cp $cp_options -- "$dst.sample" "$dst" || exit
chmod -- a-w "$dst" || exit
done
fi
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment