commands/git : remove dependency on gocui

This commit is contained in:
Anthony HAMON 2018-09-10 22:01:52 +02:00
parent 5c204b2813
commit d23577168f
2 changed files with 3 additions and 4 deletions

View file

@ -12,7 +12,7 @@ func (gui *Gui) handleCommitConfirm(g *gocui.Gui, v *gocui.View) error {
if message == "" {
return gui.createErrorPanel(g, gui.Tr.SLocalize("CommitWithoutMessageErr"))
}
sub, err := gui.GitCommand.Commit(g, message)
sub, err := gui.GitCommand.Commit(message)
if err != nil {
// TODO need to find a way to send through this error
if err != gui.Errors.ErrSubProcess {