Skip to content

Commit c4d5bf4

Browse files
authored
Merge pull request #137 from ShMcK/fix/merge-conflict
closes #130. Merge conflict from cherry-pick
2 parents 3d0587a + 138918c commit c4d5bf4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/services/git/index.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ const cherryPickCommit = async (commit: string, count = 0): Promise<void> => {
1919
return
2020
}
2121
try {
22-
const { stdout } = await node.exec(`git cherry-pick ${commit}`)
22+
// cherry-pick pulls commits from another branch
23+
// -X theirs merges and accepts incoming changes over existing changes
24+
const { stdout } = await node.exec(`git cherry-pick -X theirs ${commit}`)
2325
if (!stdout) {
2426
throw new Error('No cherry-pick output')
2527
}

0 commit comments

Comments
 (0)