Added a check for empty git repositories.