Skip to content

Commit 4a35a53

Browse files
authored
fix: Incorrect fetch for baseRef (#109)
1 parent ddbf3d9 commit 4a35a53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ async function run(octokit, context, token) {
9292
startGroup(`[base] Checkout target branch`);
9393
try {
9494
if (!baseRef) throw Error('missing context.payload.pull_request.base.ref');
95-
await exec(`git fetch -n origin ${baseRef}`);
95+
await exec(`git fetch -n origin ${baseRef}:${baseRef}`);
9696
console.log('successfully fetched base.ref');
9797
} catch (e) {
9898
console.log('fetching base.ref failed', e.message);

0 commit comments

Comments
 (0)