Make sure a new repository's path is at least one character long

Otherwise, forgetting to input a path will create a repository with the
path /var/git/.git (typically) which is unhelpful.