Fail gracefully when run outside of a git repository.