hooks:commit-msg: Source helpers directly from repo

This commit is contained in:
2024-10-16 14:27:01 +02:00
parent a376ff7b78
commit 0a12cd58ed

View File

@@ -10,7 +10,8 @@
# To enable this hook, save this file in ".git/hooks/commit-msg".
# Source die()
. "$HOME"/.local/bin/helpers.sh
repo_root="$(git rev-parse --show-toplevel)"
. "$repo_root"/.local/bin/helpers.sh
subject="$(head -1 "$1")"
# Ignore "fixup! " and "squash! " prefix' added by `git-commit`