; 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.
This commit is contained in:
Jim Porter 2023-05-04 21:04:46 -07:00
parent 34ac7d9087
commit eb3a90619f
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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