mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 07:36:27 -04:00
Fix parsing of 'y/n' when starting in non-repo
This commit is contained in:
parent
36aa01c3ac
commit
658a6b239b
|
|
@ -172,7 +172,7 @@ func (app *App) setupRepo() (bool, error) {
|
|||
// Offer to initialize a new repository in current directory.
|
||||
fmt.Print(app.Tr.CreateRepo)
|
||||
response, _ := bufio.NewReader(os.Stdin).ReadString('\n')
|
||||
if strings.Trim(response, " \n") != "y" {
|
||||
if strings.Trim(response, " \r\n") != "y" {
|
||||
shouldInitRepo = false
|
||||
}
|
||||
} else if notARepository == "skip" {
|
||||
|
|
|
|||
Loading…
Reference in a new issue