Skip to content

Cannot pass multiple args in git.merging.args config #3334

Closed
@Fed03

Description

@Fed03

Describe the bug
I'm trying to pass multiple args to the merge command, but I always receive an error.

To Reproduce

  1. Sets the following in config.yml
git:
  merging:
    args: "--ff-only --autostash"
  1. try to merge a branch

Expected behavior
The merge happens with the provided args

Screenshots
image

Version info:
commit=5e388e21c8ca6aa883dbcbe45c47f6fdd5116815, build date=2023-08-07T14:05:48Z, build source=binaryRelease, version=0.40.2, os=darwin, arch=amd64, git version=2.43.0

git version 2.43.0

Additional context
In the lazygit command log panel I see git merge --no-edit "--ff-only --autostash" <branch_name> while with a single args in config the double quote are not there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions