For users who had not overridden the `pre-commit` or
`prepare-commit-msg` Git hooks,
they would see `git commit` hang,
with nothing happening.
The command would exit without going to their editor.
The bug was introduced in d7f194f94e
and the fix is to return a 0 exit code when the override is not present.
7 lines
127 B
Bash
Executable file
7 lines
127 B
Bash
Executable file
#!/bin/sh
|
|
|
|
local_hook="$HOME"/.git_template.local/hooks/prepare-commit-msg
|
|
|
|
if [ -f "$local_hook" ]; then
|
|
. "$local_hook"
|
|
fi
|