git: revered merge detection logic in post-receive-email script