post commit which double checks for freebie presence

// FREEBIE
pull/1/head
Michael Kirk 9 years ago
parent 9e0f777556
commit 708dca282e

@ -0,0 +1,12 @@
#!/bin/bash
git log -1 HEAD | grep -i FREEBIE > /dev/null
if [[ $? -ne 0 ]]
then
cat <<EOM
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! You forgot to include FREEBIE in your commit message. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
EOM
fi
Loading…
Cancel
Save