diff options
Diffstat (limited to 'pkg/gui/recent_repos_panel.go')
-rw-r--r-- | pkg/gui/recent_repos_panel.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/gui/recent_repos_panel.go b/pkg/gui/recent_repos_panel.go index d9174e0d1..dba8ac260 100644 --- a/pkg/gui/recent_repos_panel.go +++ b/pkg/gui/recent_repos_panel.go @@ -23,6 +23,8 @@ func (gui *Gui) handleCreateRecentReposMenu() error { yellow.Sprint(innerPath), }, onPress: func() error { + os.Unsetenv("GIT_WORK_TREE") + os.Unsetenv("GIT_DIR") if err := os.Chdir(innerPath); err != nil { return err } |