summaryrefslogtreecommitdiffstats
path: root/pkg/gui/files_panel.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-01-07 19:19:24 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-01-09 14:09:53 +1100
commite92076d2c299c8171e972171c174261c6ce62d3b (patch)
treef372a446455f3c0bfa2c96dacc5e03b244487324 /pkg/gui/files_panel.go
parentd9089098c3adaa007c1a56468c9da31931877712 (diff)
start removing direct calls to cmd.New from gui
Diffstat (limited to 'pkg/gui/files_panel.go')
-rw-r--r--pkg/gui/files_panel.go10
1 files changed, 1 insertions, 9 deletions
diff --git a/pkg/gui/files_panel.go b/pkg/gui/files_panel.go
index fcf8d021c..045970f05 100644
--- a/pkg/gui/files_panel.go
+++ b/pkg/gui/files_panel.go
@@ -471,17 +471,9 @@ func (gui *Gui) handleCommitEditorPress() error {
return gui.promptToStageAllAndRetry(gui.handleCommitEditorPress)
}
- args := []string{"commit"}
-
- if gui.UserConfig.Git.Commit.SignOff {
- args = append(args, "--signoff")
- }
-
- cmdStr := "git " + strings.Join(args, " ")
-
gui.logAction(gui.Tr.Actions.Commit)
return gui.runSubprocessWithSuspenseAndRefresh(
- gui.GitCommand.Cmd.New(cmdStr),
+ gui.GitCommand.Commit.CommitEditorCmdObj(),
)
}