Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit ed0a8a2

Browse files
author
David Bushong
committed
fix: work with new simple-git output
1 parent 8cbecd2 commit ed0a8a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/commands/merge-back.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ async function tryMerge(deps, from, to, main) {
8484
try {
8585
// https://github.com/steveukx/git-js/issues/204
8686
const output = await git.merge([from]);
87-
if (/\nCONFLICT /.test(output)) throw new Error(output);
87+
if (output.failed)
88+
throw new Error(output.conflicts.map(c => `${c}`).join('\n\n'));
8889
} catch (err) {
8990
log('Automated merge failed; creating feature branch for resolution');
9091
await createFeatureMerge(deps, from, main); // will throw

0 commit comments

Comments
 (0)