From ba028b9044a2c4e34072fff0978d9597a16e2aef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Wed, 2 Nov 2022 15:53:26 +0100 Subject: [PATCH] Fix setting up git credential helper on Windows --- pkg/cmd/auth/shared/git_credential.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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