Skip to content

Commit

Permalink
fix: Incorrect fetch for baseRef (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
rschristian authored Sep 27, 2024
1 parent ddbf3d9 commit 4a35a53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ async function run(octokit, context, token) {
startGroup(`[base] Checkout target branch`);
try {
if (!baseRef) throw Error('missing context.payload.pull_request.base.ref');
await exec(`git fetch -n origin ${baseRef}`);
await exec(`git fetch -n origin ${baseRef}:${baseRef}`);
console.log('successfully fetched base.ref');
} catch (e) {
console.log('fetching base.ref failed', e.message);
Expand Down

0 comments on commit 4a35a53

Please sign in to comment.