diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-09-27 16:17:26 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-09-29 17:42:07 +1000 |
commit | 75598ea2a1a561b6cdba88d9763e134412a2eb04 (patch) | |
tree | b427a1b072541d46d917bd1e8668d4e4256b342f /pkg/gui/recent_repos_panel.go | |
parent | e8738161603b5d9844f690214cee7e570a93d5a1 (diff) |
move git dir env stuff into a centralised package
Diffstat (limited to 'pkg/gui/recent_repos_panel.go')
-rw-r--r-- | pkg/gui/recent_repos_panel.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/recent_repos_panel.go b/pkg/gui/recent_repos_panel.go index 6d9e535a3..677836172 100644 --- a/pkg/gui/recent_repos_panel.go +++ b/pkg/gui/recent_repos_panel.go @@ -6,6 +6,7 @@ import ( "github.com/fatih/color" "github.com/jesseduffield/lazygit/pkg/commands" + "github.com/jesseduffield/lazygit/pkg/env" "github.com/jesseduffield/lazygit/pkg/utils" ) @@ -23,8 +24,7 @@ func (gui *Gui) handleCreateRecentReposMenu() error { yellow.Sprint(innerPath), }, onPress: func() error { - os.Unsetenv("GIT_WORK_TREE") - os.Unsetenv("GIT_DIR") + env.UnsetGitDirEnvs() if err := os.Chdir(innerPath); err != nil { return err } |