1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-10-25 05:37:37 +03:00

Fixed pushing forever

This commit is contained in:
mjarkk
2018-11-10 17:02:39 +01:00
parent 8742c4c110
commit 80c6e0a8c4
3 changed files with 9 additions and 14 deletions

View File

@@ -77,8 +77,7 @@ func (c *OSCommand) DetectUnamePass(command string, ask func(string) string) err
}
for prompt, pattern := range prompts {
match, _ := regexp.MatchString(pattern, ttyText)
if match {
if match, _ := regexp.MatchString(pattern, ttyText); match {
ttyText = ""
return ask(prompt)
}