Skip to content

Commit beccb66

Browse files
committed
[commit] change how flags are passed in commit command
1 parent a5d4690 commit beccb66

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmd/commit/main.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ func initialModel() model {
9393
case 1:
9494
t.ShowSuggestions = true
9595
commitFlags := []string{
96-
"--message",
9796
"--all",
9897
"--patch",
9998
"--reuse-message",
@@ -130,7 +129,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
130129
// If so, exit.
131130
if s == "enter" && m.focusInputIndex == len(m.inputs) {
132131
// Execute git commit command with flags
133-
commitCmd := exec.Command("git", "commit", "-m", fmt.Sprintf("%s %s", m.inputs[0].Value(), m.inputs[1].Value()))
132+
commitCmd := exec.Command("git", "commit", "-m", fmt.Sprintf("%s", m.inputs[0].Value()), m.inputs[1].Value())
134133
commitCmd.Stdout = os.Stdout
135134
commitCmd.Stderr = os.Stderr
136135

0 commit comments

Comments
 (0)