Don't attempt git diff if not in a git repo.