diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2023-08-07 22:48:14 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-07 22:48:14 +1000 |
commit | 579791e7bc8261e9ed578f882f4b8b11a486bf78 (patch) | |
tree | 7eae43fd38f1888bd01c126c33f78fbc4b445cec /pkg/gui | |
parent | ecaf1e900242931ff4098986e0720eca15a8398a (diff) | |
parent | 595e28d335c9874eb56f7de61a85586567cd8f8c (diff) |
Fix opening lazygit in a bare repo with specified worktree (#2902)v0.40.1
Diffstat (limited to 'pkg/gui')
-rw-r--r-- | pkg/gui/controllers/helpers/repos_helper.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/controllers/helpers/repos_helper.go b/pkg/gui/controllers/helpers/repos_helper.go index d4bd46f40..3ebd7767d 100644 --- a/pkg/gui/controllers/helpers/repos_helper.go +++ b/pkg/gui/controllers/helpers/repos_helper.go @@ -145,7 +145,7 @@ func (self *ReposHelper) DispatchSwitchToRepo(path string, contextKey types.Cont func (self *ReposHelper) DispatchSwitchTo(path string, errMsg string, contextKey types.ContextKey) error { return self.c.WithWaitingStatus(self.c.Tr.Switching, func(gocui.Task) error { - env.UnsetGitDirEnv() + env.UnsetGitLocationEnvVars() originalPath, err := os.Getwd() if err != nil { return nil |