Skip to content

Commit

Permalink
Handle ambiguous refname warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
ghengeveld committed Nov 2, 2020
1 parent f76004b commit d61f7d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/git/git.js
Expand Up @@ -398,7 +398,7 @@ export async function getUpdateMessage() {
*/
export async function findMergeBase(headRef, baseRef) {
const result = await execGitCommand(`git merge-base --all ${headRef} ${baseRef}`);
const mergeBases = result.split(EOL).filter(Boolean);
const mergeBases = result.split(EOL).filter(line => line && !line.startsWith('warning: '));
if (mergeBases.length === 0) return undefined;
if (mergeBases.length === 1) return mergeBases[0];

Expand Down

0 comments on commit d61f7d6

Please sign in to comment.