Fix bug in git-hack