Skip to content

Commit 0c80aac

Browse files
tehcrashxorsccle
andauthored
Fix branch-solution for Ubuntu runners. Fixes #229 (#407)
* Filter non-matching lines from git command (branch-solution) * npm run update-dist --------- Co-authored-by: Clemens Schlomka <[email protected]>
1 parent e881f70 commit 0c80aac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/actions/branch-solution/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18620,7 +18620,7 @@ var currDir = process.cwd();
1862018620
if (branch && branch.length >= 2) {
1862118621
return branch[1];
1862218622
}
18623-
});
18623+
}).filter((x) => x !== void 0);
1862418624
if (!head || head.length < 1 || head.length > 1 || !head[0]) {
1862518625
throw new Error(`Cannot determine HEAD from remote: ${repoUrl}`);
1862618626
}

src/actions/branch-solution/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const currDir = process.cwd();
5959
if (branch && branch.length >= 2) {
6060
return branch[1];
6161
}
62-
});
62+
}).filter(x => x !== undefined);
6363
if (!head || head.length < 1 || head.length > 1 || !head[0]) {
6464
throw new Error(`Cannot determine HEAD from remote: ${repoUrl}`);
6565
}

0 commit comments

Comments
 (0)