mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
git-mfc: Allow merging merge commits
In order to merge merge commits (such as vendor imports), we need to tell git cherry-pick which of the two branches referenced in the commit is the mainline. In our case, it is always the first. Approved by: markj
This commit is contained in:
1 parent
f01c509568
commit
5f4c87e650
1 file changed
+1
-1
@@ -358,7 +358,7 @@ def pending(repo, upstream, author=None, baking=False):
|
||||
|
||||
def cherry_pick(commit, edit=False):
|
||||
"""Cherry-pick a single commit with -x. Abort on failure."""
|
||||
cmd = ['git', 'cherry-pick', '-x']
|
||||
cmd = ['git', 'cherry-pick', '-x', '-m1']
|
||||
if edit:
|
||||
cmd.append('-e')
|
||||
cmd.append(commit.hexsha)
|
||||
|
||||
Reference in new issue
Block a user