mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-01-22 05:29:44 +02:00
Merge pull request #1931 from mark2185/fix-non-existant-recent-repo
This commit is contained in:
commit
499d51ecf6
@ -190,9 +190,9 @@ func (app *App) setupRepo() (bool, error) {
|
|||||||
return true, nil
|
return true, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false, err
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fmt.Println(app.Tr.NoRecentRepositories)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
if err := app.OSCommand.Cmd.New("git init").Run(); err != nil {
|
if err := app.OSCommand.Cmd.New("git init").Run(); err != nil {
|
||||||
|
@ -256,6 +256,7 @@ type TranslationSet struct {
|
|||||||
DiscardFileChangesPrompt string
|
DiscardFileChangesPrompt string
|
||||||
DisabledForGPG string
|
DisabledForGPG string
|
||||||
CreateRepo string
|
CreateRepo string
|
||||||
|
NoRecentRepositories string
|
||||||
AutoStashTitle string
|
AutoStashTitle string
|
||||||
AutoStashPrompt string
|
AutoStashPrompt string
|
||||||
StashPrefix string
|
StashPrefix string
|
||||||
@ -878,6 +879,7 @@ func EnglishTranslationSet() TranslationSet {
|
|||||||
DiscardFileChangesPrompt: "Are you sure you want to discard this commit's changes to this file? If this file was created in this commit, it will be deleted",
|
DiscardFileChangesPrompt: "Are you sure you want to discard this commit's changes to this file? If this file was created in this commit, it will be deleted",
|
||||||
DisabledForGPG: "Feature not available for users using GPG",
|
DisabledForGPG: "Feature not available for users using GPG",
|
||||||
CreateRepo: "Not in a git repository. Create a new git repository? (y/n): ",
|
CreateRepo: "Not in a git repository. Create a new git repository? (y/n): ",
|
||||||
|
NoRecentRepositories: "Must open lazygit in a git repository. No valid recent repositories. Exiting.",
|
||||||
AutoStashTitle: "Autostash?",
|
AutoStashTitle: "Autostash?",
|
||||||
AutoStashPrompt: "You must stash and pop your changes to bring them across. Do this automatically? (enter/esc)",
|
AutoStashPrompt: "You must stash and pop your changes to bring them across. Do this automatically? (enter/esc)",
|
||||||
StashPrefix: "Auto-stashing changes for ",
|
StashPrefix: "Auto-stashing changes for ",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user