Skip to content

Commit

Permalink
Fix merge command
Browse files Browse the repository at this point in the history
  • Loading branch information
shijinglu committed Feb 15, 2019
1 parent 1818721 commit 3db6a40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions node/lib/cmd/merge.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ Merge of '${commitName}'
};
const commit = yield repo.getCommit(commitish.id());
const result = yield MergeUtil.merge(repo,
null,
commit,
mode,
Open.SUB_OPEN_OPTION.ALLOW_BARE,
Expand Down
4 changes: 3 additions & 1 deletion node/lib/cmd/merge_bare.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,14 @@ Could not resolve ${colors.red(theirCommitName)} to a commit.`);

const ourCommit = yield repo.getCommit(ourCommitish.id());
const theirCommit = yield repo.getCommit(theirCommitish.id());
const noopEditor = function() {};
const result = yield MergeUtil.merge(repo,
ourCommit,
theirCommit,
mode,
Open.SUB_OPEN_OPTION.FORCE_BARE,
args.message);
args.message,
noopEditor);
if (null !== result.errorMessage) {
throw new UserError(result.errorMessage);
}
Expand Down

0 comments on commit 3db6a40

Please sign in to comment.