diff --git a/pkg/commands/git_test.go b/pkg/commands/git_test.go index 58210c4a8..ed1fed013 100644 --- a/pkg/commands/git_test.go +++ b/pkg/commands/git_test.go @@ -905,7 +905,7 @@ func TestGitCommandAmendHead(t *testing.T) { "Amend commit using gpg", func(cmd string, args ...string) *exec.Cmd { assert.EqualValues(t, "bash", cmd) - assert.EqualValues(t, []string{"-c", "git commit --amend --no-edit --allow-empty"}, args) + assert.EqualValues(t, []string{"-c", "git", "commit", "--amend", "--no-edit", "--allow-empty"}, args) return exec.Command("echo") },