emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 403cc9f: Fix autogen.sh for separate worktrees


From: Paul Eggert
Subject: [Emacs-diffs] master 403cc9f: Fix autogen.sh for separate worktrees
Date: Thu, 05 May 2016 04:11:44 +0000

branch: master
commit 403cc9fad9534338050b0ce14941e3d9cd30079a
Author: Noam Postavsky <address@hidden>
Commit: Paul Eggert <address@hidden>

    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.
---
 autogen.sh |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/autogen.sh b/autogen.sh
index cd0accd..3809942 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]