Skip to content

Commit

Permalink
Merge pull request jesseduffield#2272 from jesseduffield/no-push-comm…
Browse files Browse the repository at this point in the history
…its-when-resetting
  • Loading branch information
jesseduffield authored Nov 13, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 2ddd3dd + d263505 commit c77c02c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/gui/controllers/helpers/refs_helper.go
Original file line number Diff line number Diff line change
@@ -122,10 +122,6 @@ func (self *RefsHelper) ResetToRef(ref string, strength string, envVars []string
// loading a heap of commits is slow so we limit them whenever doing a reset
self.contexts.LocalCommits.SetLimitCommits(true)

if err := self.c.PushContext(self.contexts.LocalCommits); err != nil {
return err
}

if err := self.c.Refresh(types.RefreshOptions{Scope: []types.RefreshableView{types.FILES, types.BRANCHES, types.REFLOG, types.COMMITS}}); err != nil {
return err
}

0 comments on commit c77c02c

Please sign in to comment.