mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-04-15 11:56:37 +02: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),
|
yellow.Sprint(innerPath),
|
||||||
},
|
},
|
||||||
onPress: func() error {
|
onPress: func() error {
|
||||||
|
os.Unsetenv("GIT_WORK_TREE")
|
||||||
|
os.Unsetenv("GIT_DIR")
|
||||||
if err := os.Chdir(innerPath); err != nil {
|
if err := os.Chdir(innerPath); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user