mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-12 23:41:54 +03:00
Break git.merging.args config into separate arguments on whitespace
This makes it possible again to pass multiple arguments, for example "--ff-only --autostash". This won't work correctly if you want to use an argument that contains a space, but it's very unlikely that people will want to do that, so I think this is good enough.
This commit is contained in:
@ -138,8 +138,7 @@ func TestBranchMerge(t *testing.T) {
|
||||
},
|
||||
opts: MergeOpts{},
|
||||
branchName: "mybranch",
|
||||
expected: []string{"merge", "--no-edit", "--arg1 --arg2", "mybranch"},
|
||||
// This is wrong, we want separate arguments for "--arg1" and "--arg2"
|
||||
expected: []string{"merge", "--no-edit", "--arg1", "--arg2", "mybranch"},
|
||||
},
|
||||
{
|
||||
testName: "fast forward only",
|
||||
|
Reference in New Issue
Block a user