Fixes issues when you do not have a repository at all