mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-28 16:02:01 +03:00
fix logging
This commit is contained in:
@ -99,6 +99,8 @@ func (c *GitCommand) WithSpan(span string) *GitCommand {
|
|||||||
*newGitCommand = *c
|
*newGitCommand = *c
|
||||||
newGitCommand.OSCommand = c.OSCommand.WithSpan(span)
|
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
|
// 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.
|
// 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
|
// This means each time we call ApplyPatch in PatchManager, we need to ensure
|
||||||
|
@ -116,6 +116,8 @@ func (c *OSCommand) WithSpan(span string) *OSCommand {
|
|||||||
newOSCommand := &OSCommand{}
|
newOSCommand := &OSCommand{}
|
||||||
*newOSCommand = *c
|
*newOSCommand = *c
|
||||||
newOSCommand.CmdLogSpan = span
|
newOSCommand.CmdLogSpan = span
|
||||||
|
newOSCommand.Cmd.logCmdObj = newOSCommand.LogCmdObj
|
||||||
|
newOSCommand.Cmd.runner = &Runner{log: c.Log, logCmdObj: newOSCommand.LogCmdObj}
|
||||||
return newOSCommand
|
return newOSCommand
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user