Skip to content

Commit b86c043

Browse files
committed
fix(ci): prevent ambigious ref when checking head
1 parent 886050c commit b86c043

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ci/src/lib/run-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ export async function loadCachedBaseReport(
225225

226226
export async function ensureHeadBranch({ refs, git }: RunEnv): Promise<void> {
227227
const { head } = refs;
228-
if ((await git.revparse('HEAD')) !== (await git.revparse(head.ref))) {
228+
if (head.sha !== (await git.revparse('HEAD'))) {
229229
await git.checkout(['-f', head.ref]);
230230
}
231231
}

0 commit comments

Comments
 (0)