summaryrefslogtreecommitdiffstats
path: root/.git-hooks/post-merge
blob: b1be51202a3fd0d1e8f564acf700a74a00894166 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

# 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