mirror of
https://github.com/gaschz/dotfiles.git
synced 2025-06-06 18:08:31 +02:00
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:
parent
9c1d9c68b9
commit
7928a352be
@ -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
|
Loading…
x
Reference in New Issue
Block a user