summaryrefslogtreecommitdiffstats
path: root/pkg/commands/git_commands/branch.go
diff options
context:
space:
mode:
authorStefan Haller <stefan@haller-berlin.de>2024-03-02 10:24:36 +0100
committerGitHub <noreply@github.com>2024-03-02 10:24:36 +0100
commite9b04b8cfc569b10f77ff26b0113b4d2d05fe288 (patch)
tree590eec10820fa37e923ba14d198bf17ec6ee8324 /pkg/commands/git_commands/branch.go
parentee5533f9bf101e2ac313f9c0c41b280fb20d967c (diff)
parent253a0096f91fc100261030e591a1035b7efefc62 (diff)
Allow more than one argument in git.merging.args config (#3336)
- **PR Description** Fix a bug where merging would fail with an error message when you try to put more than one argument in the `git.merging.args` config. This broke with 25f8b0337e. Fixes #3334.
Diffstat (limited to 'pkg/commands/git_commands/branch.go')
-rw-r--r--pkg/commands/git_commands/branch.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/commands/git_commands/branch.go b/pkg/commands/git_commands/branch.go
index b8d562dae..d05738ef3 100644
--- a/pkg/commands/git_commands/branch.go
+++ b/pkg/commands/git_commands/branch.go
@@ -210,7 +210,7 @@ type MergeOpts struct {
func (self *BranchCommands) Merge(branchName string, opts MergeOpts) error {
cmdArgs := NewGitCmd("merge").
Arg("--no-edit").
- ArgIf(self.UserConfig.Git.Merging.Args != "", self.UserConfig.Git.Merging.Args).
+ Arg(strings.Fields(self.UserConfig.Git.Merging.Args)...).
ArgIf(opts.FastForwardOnly, "--ff-only").
Arg(branchName).
ToArgv()