diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-09-27 15:52:28 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-09-29 17:42:07 +1000 |
commit | 23626755d7d4ae3573d25ad73db7bf5be0c495f2 (patch) | |
tree | 47fafe6c7f2e866ff4dd88cf7613cc0eb07c57af /pkg/gui/recent_repos_panel.go | |
parent | 97af7e677bfbe18581421b63ceb547b59ee996dd (diff) |
unset GIT_WORK_TREE and GIT_DIR when switching repos
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 } |