mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 15:46:26 -04:00
unset GIT_WORK_TREE and GIT_DIR when switching repos
This commit is contained in:
parent
97af7e677b
commit
23626755d7
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue