mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-02-13 13:59:06 +02: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.
|
// Offer to initialize a new repository in current directory.
|
||||||
fmt.Print(app.Tr.CreateRepo)
|
fmt.Print(app.Tr.CreateRepo)
|
||||||
response, _ := bufio.NewReader(os.Stdin).ReadString('\n')
|
response, _ := bufio.NewReader(os.Stdin).ReadString('\n')
|
||||||
if strings.Trim(response, " \n") != "y" {
|
if strings.Trim(response, " \r\n") != "y" {
|
||||||
shouldInitRepo = false
|
shouldInitRepo = false
|
||||||
}
|
}
|
||||||
} else if notARepository == "skip" {
|
} else if notARepository == "skip" {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user