Handle empty git repositories