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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user