I have a post-receive hook that create a file after a push on master branch
branch_name=$(git rev-parse --symbolic --abbrev-ref $refname)
if [ "master" == "$branch_name" ]; then
touch OK_push.txt
fi
Is it possible to do the same thing after a merge (or pull) between one branch on master branch?