Skip to content

Commit

Permalink
fix: ambiguious argument to git reset
Browse files Browse the repository at this point in the history
  • Loading branch information
rschristian authored May 9, 2024
1 parent f780fd1 commit c0cd437
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 @@ -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}`);
}
Expand Down

0 comments on commit c0cd437

Please sign in to comment.