Skip to content

Commit 138918c

Browse files
committed
closes #130. Merge conflict from cherry-pick
1 parent 3d0587a commit 138918c

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)