Quote path of repo in order to have a valid copy paste command

Closes #5602
This commit is contained in:
Federico Guerinoni 2022-05-26 12:12:56 +02:00
parent 77507cd94c
commit b780608e90

View file

@ -443,7 +443,7 @@ func createFromLocal(opts *CreateOptions) error {
if repoPath == "." {
return fmt.Errorf("current directory is not a git repository. Run `git init` to initalize it")
}
return fmt.Errorf("%s is not a git repository. Run `git -C %s init` to initialize it", absPath, repoPath)
return fmt.Errorf("%s is not a git repository. Run `git -C \"%s\" init` to initialize it", absPath, repoPath)
}
committed, err := hasCommits(repoPath)