Skip to content

Commit

Permalink
Always reset checkout on bisect reset
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey committed Nov 17, 2023
1 parent 02de405 commit fcc9b5f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/hip-jokes-attend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"every-ts": patch
---

Always reset checkout on bisect reset
4 changes: 3 additions & 1 deletion src/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ export class Bisect extends BaseCommand {
let shouldReset = false;
const bisectInfo = await getBisectInfo();

if (this.subcommand === `start` && revs.length >= 2) {
if (this.subcommand === `reset`) {
shouldReset = true;
} else if (this.subcommand === `start` && revs.length >= 2) {
shouldReset = true;
} else if (bisectInfo?.terms.size === 2) {
shouldReset = true;
Expand Down

0 comments on commit fcc9b5f

Please sign in to comment.