emacs-diffs
[Top][All Lists]
Advanced

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

master eb3a90619fe: ; Allow spaces in directory names for Git hooks


From: Jim Porter
Subject: master eb3a90619fe: ; Allow spaces in directory names for Git hooks
Date: Fri, 5 May 2023 00:05:53 -0400 (EDT)

branch: master
commit eb3a90619fed86298c96951af527a8483bdd1a3c
Author: Jim Porter <jporterbugs@gmail.com>
Commit: Jim Porter <jporterbugs@gmail.com>

    ; Allow spaces in directory names for Git hooks
    
    * build-aux/git-hooks/post-commit:
    * build-aux/git-hooks/pre-push: Quote "$HOOKS_DIR" to allow spaces.
---
 build-aux/git-hooks/post-commit | 2 +-
 build-aux/git-hooks/pre-push    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/build-aux/git-hooks/post-commit b/build-aux/git-hooks/post-commit
index 10f43b539ac..12cae09206a 100755
--- a/build-aux/git-hooks/post-commit
+++ b/build-aux/git-hooks/post-commit
@@ -44,4 +44,4 @@ else
 fi
 
 git rev-parse HEAD | $awk -v reason=post-commit \
-                          -f $HOOKS_DIR/commit-msg-files.awk
+                          -f "$HOOKS_DIR"/commit-msg-files.awk
diff --git a/build-aux/git-hooks/pre-push b/build-aux/git-hooks/pre-push
index 8d5dde2bbaf..420aae3492b 100755
--- a/build-aux/git-hooks/pre-push
+++ b/build-aux/git-hooks/pre-push
@@ -85,4 +85,4 @@ $awk -v origin_name="$1" '
     # Print every SHA after oldref, up to (and including) newref.
     system("git rev-list --first-parent --reverse " oldref ".." newref)
   }
-' | $awk -v reason=pre-push -f $HOOKS_DIR/commit-msg-files.awk
+' | $awk -v reason=pre-push -f "$HOOKS_DIR"/commit-msg-files.awk



reply via email to

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