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:
parent
cecd5733a8
commit
9fc4262887
@ -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 ""
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user