diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2019-11-05 18:10:47 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2019-11-05 19:22:01 +1100 |
commit | cd3874ffb7826099574f2661475ff24298d16a64 (patch) | |
tree | 2503e86c6ab46f227ff4ca65503c57cad00f1289 /pkg/commands/patch_rebases.go | |
parent | 10fe88a2cf79d525f4dfa767b2d0fab1793127e8 (diff) |
don't let patch manager ever be nil
Diffstat (limited to 'pkg/commands/patch_rebases.go')
-rw-r--r-- | pkg/commands/patch_rebases.go | 8 |
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 } |