From c0cd437aed5f8b42c3e75f3595dc485a34f583db Mon Sep 17 00:00:00 2001 From: Ryan Christian <33403762+rschristian@users.noreply.github.com> Date: Wed, 8 May 2024 23:22:11 -0500 Subject: [PATCH] fix: ambiguious argument to `git reset` --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}`); }