hooks:commit-msg: Source helpers directly from repo
This commit is contained in:
@@ -10,7 +10,8 @@
|
|||||||
# To enable this hook, save this file in ".git/hooks/commit-msg".
|
# To enable this hook, save this file in ".git/hooks/commit-msg".
|
||||||
|
|
||||||
# Source die()
|
# Source die()
|
||||||
. "$HOME"/.local/bin/helpers.sh
|
repo_root="$(git rev-parse --show-toplevel)"
|
||||||
|
. "$repo_root"/.local/bin/helpers.sh
|
||||||
|
|
||||||
subject="$(head -1 "$1")"
|
subject="$(head -1 "$1")"
|
||||||
# Ignore "fixup! " and "squash! " prefix' added by `git-commit`
|
# Ignore "fixup! " and "squash! " prefix' added by `git-commit`
|
||||||
|
|||||||
Reference in New Issue
Block a user