Fixing bug related to GIT_DIR in post-merge hook.