diff --git a/src/index.js b/src/index.js index 33ad595..c5b65a0 100644 --- a/src/index.js +++ b/src/index.js @@ -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);