1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-03-05 15:15:49 +02:00

small code addition

This commit is contained in:
mjarkk 2018-10-17 20:41:22 +02:00
parent cecd5733a8
commit 9fc4262887

View File

@ -342,11 +342,12 @@ func (c *GitCommand) Push(branchName string, force bool) error {
cmd := fmt.Sprintf("git push %s -u origin %s", forceFlag, branchName)
return c.OSCommand.DetectUnamePass(cmd, func(passOrUname string) string {
if passOrUname == "password" {
return "some password"
// ask for password
return "some password"
}
if passOrUname == "username" {
// ask for username
return "some username"
}
return ""
})