fix other cases where git hooks fail due to old commits

Merged James Lopez requested to merge fix/git-hook-merge into master

Fixes https://gitlab.com/gitlab-org/gitlab-ee/issues/428

Simply omitted the check for a new branch push, and always apply "do not run git hooks on old commits" logic.