We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31fe470 commit 03e9c4dCopy full SHA for 03e9c4d
modules/git/command.go
@@ -82,7 +82,6 @@ func (c *Command) ProcessState() string {
82
// NewCommand creates and returns a new Git Command based on given command and arguments.
83
// Each argument should be safe to be trusted. User-provided arguments should be passed to AddDynamicArguments instead.
84
func NewCommand(args ...internal.CmdArg) *Command {
85
- // Make an explicit copy of globalCommandArgs, otherwise append might overwrite it
86
cargs := make([]string, 0, len(args))
87
for _, arg := range args {
88
cargs = append(cargs, string(arg))
0 commit comments