mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-12 21:05:48 +02:00
small code addition
This commit is contained in:
parent
cecd5733a8
commit
9fc4262887
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue