Skip to content

Commit

Permalink
Ensure repo is cloned before bisect commands are run
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey committed Feb 4, 2024
1 parent ac8f80c commit c143c42
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/eighty-buckets-itch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"every-ts": patch
---

Ensure repo is cloned before bisect commands are run
4 changes: 2 additions & 2 deletions src/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ export class Bisect extends BaseCommand {
args = Option.Proxy();

override async executeOrThrow(): Promise<number | void> {
await ensureRepo();

let startArgs: string[] = [];
let revs: string[] | undefined;
let endArgs: string[] = [];
Expand All @@ -54,8 +56,6 @@ export class Bisect extends BaseCommand {
revs = await Promise.all(revs.map((r) => findRev(r)));
}

await ensureRepo();

let shouldReset = false;
const bisectInfo = await getBisectInfo();

Expand Down

0 comments on commit c143c42

Please # to comment.