diff options
author | Luka Markušić <luka.markusic@microblink.com> | 2022-05-28 16:52:49 +0200 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-06-11 09:42:51 +1000 |
commit | 658a6b239baa2fb2d077d0753d7036e378d0e0bf (patch) | |
tree | b561d100d4a1f05144a432cb02504df4ca1332af /pkg/app | |
parent | 36aa01c3accffcf6e8790dd0407005765da844a4 (diff) |
Fix parsing of 'y/n' when starting in non-repo
Diffstat (limited to 'pkg/app')
-rw-r--r-- | pkg/app/app.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/app/app.go b/pkg/app/app.go index f12c0f08a..2d1264e7b 100644 --- a/pkg/app/app.go +++ b/pkg/app/app.go @@ -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" { |