Commit 65d14021 authored by Ma_124's avatar Ma_124

now aborting due to empty commit message

parent d71e2559
Pipeline #46265467 passed with stages
in 3 minutes and 24 seconds
if [ -z "`head -n 1 $1`" ]; then
echo "commit-msg: Aborting commit due to empty commit message."
exit 1
echo "Signed commit message"
cat $1
awk 'NR==1,/^#/{sub(/^#/, "\n[hooks installed]\n#")} 1' $1 | tee $1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment