office-gobmx/git-hooks/post-merge
2010-11-30 20:25:21 -06:00

12 lines
377 B
Bash
Executable file

#!/bin/bash
# Do not warn if there were no real merge
git rev-parse -q --verify HEAD^2 >/dev/null || exit
echo
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
echo "! You probably used 'git pull' instead of 'git pull -r' !"
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
echo
echo "You can still fix it - please do 'git pull -r' now."
echo