summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorJim Porter <jporterbugs@gmail.com>2023-05-04 21:04:46 -0700
committerJim Porter <jporterbugs@gmail.com>2023-05-04 21:04:46 -0700
commiteb3a90619fed86298c96951af527a8483bdd1a3c (patch)
treedd7ea1d42dddb412f750dd412e1c782ff1960de2 /build-aux
parent34ac7d908762663e4f91b678d3456286c494c237 (diff)
downloademacs-eb3a90619fed86298c96951af527a8483bdd1a3c.tar.gz
; 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.
Diffstat (limited to 'build-aux')
-rwxr-xr-xbuild-aux/git-hooks/post-commit2
-rwxr-xr-xbuild-aux/git-hooks/pre-push2
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