diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2023-07-16 17:26:27 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2023-07-30 18:35:22 +1000 |
commit | 6c69549ced9286517fa53530049318123c6ed781 (patch) | |
tree | 53baf64577bb517a4ea7f6a597ee760a605b325b /pkg/gui | |
parent | 5868750abaa6de4d32909f99253765361f77ef30 (diff) |
Don't touch repo stack when switching worktrees
We shouldn't touch this cos we're doing a lateral move
Diffstat (limited to 'pkg/gui')
-rw-r--r-- | pkg/gui/controllers/helpers/worktree_helper.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/pkg/gui/controllers/helpers/worktree_helper.go b/pkg/gui/controllers/helpers/worktree_helper.go index b43fb7d69..0dce60d60 100644 --- a/pkg/gui/controllers/helpers/worktree_helper.go +++ b/pkg/gui/controllers/helpers/worktree_helper.go @@ -85,9 +85,5 @@ func (self *WorktreeHelper) Switch(worktree *models.Worktree, contextKey types.C self.c.LogAction(self.c.Tr.SwitchToWorktree) - // if we were in a submodule, we want to forget about that stack of repos - // so that hitting escape in the new repo does nothing - self.c.State().GetRepoPathStack().Clear() - return self.reposHelper.DispatchSwitchTo(worktree.Path, true, self.c.Tr.ErrWorktreeMovedOrRemoved, contextKey) } |