diff options
author | mjarkk <mkopenga@gmail.com> | 2018-10-17 21:12:33 +0200 |
---|---|---|
committer | mjarkk <mkopenga@gmail.com> | 2018-10-17 21:12:33 +0200 |
commit | 01fa106de339a4340b6dbf847802a7b1efcc8359 (patch) | |
tree | cf05448135503f9fa96d1640099c4f10a4dbaa6c /pkg/gui | |
parent | 9fc4262887d25697f39c9797041ce7705fb9ce7c (diff) |
Added files to commit pannelsidjfjlisdjfilisldjfiljisldjilfjisdjilfjlsidMoved some code around
Diffstat (limited to 'pkg/gui')
-rw-r--r-- | pkg/gui/files_panel.go | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkg/gui/files_panel.go b/pkg/gui/files_panel.go index a00bd2843..513aa336d 100644 --- a/pkg/gui/files_panel.go +++ b/pkg/gui/files_panel.go @@ -361,7 +361,15 @@ func (gui *Gui) pushWithForceFlag(currentView *gocui.View, force bool) error { } go func() { branchName := gui.State.Branches[0].Name - if err := gui.GitCommand.Push(branchName, force); err != nil { + err := gui.GitCommand.Push(branchName, force, func(passOrUname string) string { + if passOrUname == "password" { + // TODO: ask for password + return "some password" + } + // TODO: ask for username + return "some username" + }) + if err != nil { _ = gui.createErrorPanel(gui.g, err.Error()) } else { _ = gui.closeConfirmationPrompt(gui.g) |