Merge pull request #5719 from guerinoni/fix-quote-path

Quote path of repo in order to have a valid copy paste command
This commit is contained in:
Mislav Marohnić 2022-05-30 17:26:30 +02:00 committed by GitHub
commit 76a21a4792
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)