diff --git a/pkg/cmd/auth/shared/git_credential.go b/pkg/cmd/auth/shared/git_credential.go index 5ddac14d5..8624cf00b 100644 --- a/pkg/cmd/auth/shared/git_credential.go +++ b/pkg/cmd/auth/shared/git_credential.go @@ -180,7 +180,7 @@ func isGitMissing(err error) bool { } func shellQuote(s string) string { - if strings.ContainsAny(s, " $") { + if strings.ContainsAny(s, " $\\") { return "'" + s + "'" } return s