Closed omixximo closed 2 days ago
Hi, thank you for opening the issue. The mergeFromTo code has been in place for a long time, and doesn't look to be compatible with modern versions of git - as you rightly point out it will trigger an octopus merge.
I'll update the docs etc soon, until then please use the format
git.merge(['origin/branch'])
This issue has been automatically closed due to a lack of response. If your problem persists please open a new issue including any additional detail requested from this issue. For more detail on the issues/pull requests see ISSUES_AND_PULL_REQUESTS
Hello,
I was trying to use the command mergeFromTo to merge a branch allocated in a remote.
Example: origin/branchToMerge
Reading the documentation of the method I can see that:
So I would call the method like git.mergeFromTo('origin', 'branchToMerge').
This is executing: 'git merge origin branchToMerge'. This is tries an octupus merge instead of a normal merge by documentation at least from version 2.33 or higher: git-merge doc 2.33![image](https://github.com/steveukx/git-js/assets/72169119/501a8f1b-2679-4960-a0ad-ccca5a5ff215)
Expecting to execute: 'git merge origin/branchToMerge'.