summaryrefslogtreecommitdiffstats
path: root/pkg/commands/patch_rebases.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/commands/patch_rebases.go')
-rw-r--r--pkg/commands/patch_rebases.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/commands/patch_rebases.go b/pkg/commands/patch_rebases.go
index f0dadbc16..19116e071 100644
--- a/pkg/commands/patch_rebases.go
+++ b/pkg/commands/patch_rebases.go
@@ -22,7 +22,7 @@ func (c *GitCommand) DeletePatchesFromCommit(commits []*Commit, commitIndex int,
}
c.onSuccessfulContinue = func() error {
- c.PatchManager = nil
+ c.PatchManager.Reset()
return nil
}
@@ -50,7 +50,7 @@ func (c *GitCommand) MovePatchToSelectedCommit(commits []*Commit, sourceCommitId
}
c.onSuccessfulContinue = func() error {
- c.PatchManager = nil
+ c.PatchManager.Reset()
return nil
}
@@ -121,7 +121,7 @@ func (c *GitCommand) MovePatchToSelectedCommit(commits []*Commit, sourceCommitId
}
c.onSuccessfulContinue = func() error {
- c.PatchManager = nil
+ c.PatchManager.Reset()
return nil
}
@@ -161,7 +161,7 @@ func (c *GitCommand) PullPatchIntoIndex(commits []*Commit, commitIdx int, p *Pat
return err
}
- c.PatchManager = nil
+ c.PatchManager.Reset()
return nil
}