Skip to content

Commit 6c0feaa

Browse files
ChristopherHXlunny
andauthored
Update modules/git/command.go
Co-authored-by: Lunny Xiao <[email protected]>
1 parent 6ae80f9 commit 6c0feaa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/git/command.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,9 @@ func (c *Command) AddConfig(key, value string) *Command {
201201
kv := key + "=" + value
202202
if !isSafeArgumentValue(kv) {
203203
c.brokenArgs = append(c.brokenArgs, key)
204+
} else {
205+
c.configArgs = append(c.configArgs, "-c", kv)
204206
}
205-
c.configArgs = append(c.configArgs, "-c", kv)
206207
return c
207208
}
208209

0 commit comments

Comments
 (0)