mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-15 00:15:32 +02:00
add quotes around the git commit command on non-windows systems
Signed-off-by: Randshot <randshot@norealm.xyz>
This commit is contained in:
@ -815,7 +815,7 @@ func TestGitCommandCommit(t *testing.T) {
|
||||
"Commit using gpg",
|
||||
func(cmd string, args ...string) *exec.Cmd {
|
||||
assert.EqualValues(t, "bash", cmd)
|
||||
assert.EqualValues(t, []string{"-c", "git", "commit", "-m", "test"}, args)
|
||||
assert.EqualValues(t, []string{"-c", "git commit -m 'test'"}, args)
|
||||
|
||||
return exec.Command("echo")
|
||||
},
|
||||
@ -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")
|
||||
},
|
||||
|
Reference in New Issue
Block a user