Skip to content

Commit

Permalink
Fix branch-solution for Ubuntu runners. Fixes #229 (#407)
Browse files Browse the repository at this point in the history
* Filter non-matching lines from git command (branch-solution)

* npm run update-dist

---------

Co-authored-by: Clemens Schlomka <clemens.schlomka@vibracoustic.com>
  • Loading branch information
tehcrashxor and sccle committed Jul 18, 2023
1 parent e881f70 commit 0c80aac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/actions/branch-solution/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18620,7 +18620,7 @@ var currDir = process.cwd();
if (branch && branch.length >= 2) {
return branch[1];
}
});
}).filter((x) => x !== void 0);
if (!head || head.length < 1 || head.length > 1 || !head[0]) {
throw new Error(`Cannot determine HEAD from remote: ${repoUrl}`);
}
Expand Down
2 changes: 1 addition & 1 deletion src/actions/branch-solution/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const currDir = process.cwd();
if (branch && branch.length >= 2) {
return branch[1];
}
});
}).filter(x => x !== undefined);
if (!head || head.length < 1 || head.length > 1 || !head[0]) {
throw new Error(`Cannot determine HEAD from remote: ${repoUrl}`);
}
Expand Down

0 comments on commit 0c80aac

Please sign in to comment.