diff --git a/src/index.js b/src/index.js index 33ad595..2d15912 100644 --- a/src/index.js +++ b/src/index.js @@ -112,7 +112,7 @@ async function run(octokit, context, token) { console.log('checking out and building base commit'); try { if (!baseRef) throw Error('missing context.payload.base.ref'); - await exec(`git reset --hard ${baseRef}`); + await exec(`git reset --hard ${baseRef} --`); } catch (e) { await exec(`git reset --hard ${baseSha}`); }