Unnecessary logic, git commit won't commit if on a clean branch