Merge pull request #6558 from cli/setup-git-windows

Fix setting up git credential helper on Windows
This commit is contained in:
Mislav Marohnić 2022-11-02 18:58:02 +01:00 committed by GitHub
commit 57b3ef1f38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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