mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-04-23 12:18:51 +02:00
Better name for this function
This commit is contained in:
parent
696d6dc20c
commit
3c17bf761a
@ -514,7 +514,7 @@ func (gui *Gui) Run() error {
|
|||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
_, err := gui.fetch(g, g.CurrentView(), false)
|
_, err := gui.fetch(g, g.CurrentView(), false)
|
||||||
if err != nil && strings.Contains(err.Error(), "exit status 128") && gui.canShowIsPrivateRepo() {
|
if err != nil && strings.Contains(err.Error(), "exit status 128") && gui.IsNewPrivateRepo() {
|
||||||
gui.introAgree.Wait()
|
gui.introAgree.Wait()
|
||||||
_ = gui.createConfirmationPanel(g, g.CurrentView(), gui.Tr.SLocalize("NoAutomaticGitFetchTitle"), gui.Tr.SLocalize("NoAutomaticGitFetchBody"), nil, nil)
|
_ = gui.createConfirmationPanel(g, g.CurrentView(), gui.Tr.SLocalize("NoAutomaticGitFetchTitle"), gui.Tr.SLocalize("NoAutomaticGitFetchBody"), nil, nil)
|
||||||
} else {
|
} else {
|
||||||
|
@ -59,8 +59,8 @@ func (gui *Gui) updateRecentRepoList() error {
|
|||||||
return gui.Config.SaveAppState()
|
return gui.Config.SaveAppState()
|
||||||
}
|
}
|
||||||
|
|
||||||
// canShowIsPrivateRepo returns true if a private repo is never opend before in lazygit
|
// IsNewPrivateRepo returns true if a private repo is never opend before in lazygit
|
||||||
func (gui *Gui) canShowIsPrivateRepo() bool {
|
func (gui *Gui) IsNewPrivateRepo() bool {
|
||||||
repos := gui.Config.GetAppState().RecentPrivateRepos
|
repos := gui.Config.GetAppState().RecentPrivateRepos
|
||||||
currentRepo, err := os.Getwd()
|
currentRepo, err := os.Getwd()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user