1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

Only show private repo popup when opening repo for first time

This commit is contained in:
mjarkk
2018-12-06 22:05:16 +01:00
parent 6d0fa8bc29
commit ced81e11f0
3 changed files with 24 additions and 4 deletions

View File

@ -443,7 +443,7 @@ func (gui *Gui) Run() error {
go func() {
err := gui.fetch(g, g.CurrentView(), false)
if err != nil && strings.Contains(err.Error(), "exit status 128") {
if err != nil && strings.Contains(err.Error(), "exit status 128") && gui.canShowIsPrivateRepo() {
_ = gui.createConfirmationPanel(g, g.CurrentView(), gui.Tr.SLocalize("NoAutomaticGitFetchTitle"), gui.Tr.SLocalize("NoAutomaticGitFetchBody"), nil, nil)
} else {
gui.goEvery(g, time.Second*60, func(g *gocui.Gui) error {