summaryrefslogtreecommitdiffstats
path: root/pkg/gui/controllers/helpers/repos_helper.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2023-08-07 22:48:14 +1000
committerGitHub <noreply@github.com>2023-08-07 22:48:14 +1000
commit579791e7bc8261e9ed578f882f4b8b11a486bf78 (patch)
tree7eae43fd38f1888bd01c126c33f78fbc4b445cec /pkg/gui/controllers/helpers/repos_helper.go
parentecaf1e900242931ff4098986e0720eca15a8398a (diff)
parent595e28d335c9874eb56f7de61a85586567cd8f8c (diff)
Fix opening lazygit in a bare repo with specified worktree (#2902)v0.40.1
Diffstat (limited to 'pkg/gui/controllers/helpers/repos_helper.go')
-rw-r--r--pkg/gui/controllers/helpers/repos_helper.go2
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