k3s/hooks/commit-msg

11 lines
208 B
Plaintext
Raw Normal View History

2014-06-06 23:40:48 +00:00
#!/bin/bash
if [[ "$(grep -c "# then delete this line" $1)" == "1" ]]; then
echo "Unresolved gofmt errors. Aborting commit."
echo "The message of your attempted commit was:"
cat $1
exit 1
fi
exit 0