We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 886050c commit b86c043Copy full SHA for b86c043
packages/ci/src/lib/run-utils.ts
@@ -225,7 +225,7 @@ export async function loadCachedBaseReport(
225
226
export async function ensureHeadBranch({ refs, git }: RunEnv): Promise<void> {
227
const { head } = refs;
228
- if ((await git.revparse('HEAD')) !== (await git.revparse(head.ref))) {
+ if (head.sha !== (await git.revparse('HEAD'))) {
229
await git.checkout(['-f', head.ref]);
230
}
231
0 commit comments