summaryrefslogtreecommitdiffstats
path: root/pkg/commands/git.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-12-30 11:35:15 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-01-04 09:07:15 +1100
commit9d4ff6b46512aa5261ab6218d978737a0b33359d (patch)
tree0897d1f0f8c534f00c471f507c9e70d9e8b77859 /pkg/commands/git.go
parent95f4ceea343880babb7046258a26b8c062853c36 (diff)
fix logging
Diffstat (limited to 'pkg/commands/git.go')
-rw-r--r--pkg/commands/git.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/commands/git.go b/pkg/commands/git.go
index b83fa1b73..950042780 100644
--- a/pkg/commands/git.go
+++ b/pkg/commands/git.go
@@ -99,6 +99,8 @@ func (c *GitCommand) WithSpan(span string) *GitCommand {
*newGitCommand = *c
newGitCommand.OSCommand = c.OSCommand.WithSpan(span)
+ newGitCommand.Cmd = NewGitCmdObjBuilder(c.Log, newGitCommand.OSCommand.Cmd)
+
// NOTE: unlike the other things here which create shallow clones, this will
// actually update the PatchManager on the original struct to have the new span.
// This means each time we call ApplyPatch in PatchManager, we need to ensure