fix: disable use of prepare-commit-msg hook

Causing issues when doing an amend and also is not desired as it doesn't
allow including many scripts to be run in a hook stage.
This commit is contained in:
Ben Grande 2025-01-09 17:40:12 +01:00
parent 9c1d9c68b9
commit 7928a352be
No known key found for this signature in database
GPG Key ID: 00C64E14F51F9E56

View File

@ -34,7 +34,8 @@ sed -i'' \
## Replace init.template comment char to the core.commentChar line per line.
if test -f "${template}"; then
while read -r line; do
mod_line="$(printf '%s\n' "${line}" | sed -e "s/^. /${char} /")"
mod_line="${line#* }"
mod_line="${char} ${mod_line}"
sed -i'' -e "s/^${line}$/${mod_line}/" -- "${file}"
done < "${template}"
fi