Fix repo name default when running in non-bare repo.