You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
session-ios/Utilities/post-commit

13 lines
282 B
Bash

#!/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