From c143c423623487618182cf795cff3569fa447af1 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Sun, 4 Feb 2024 13:55:14 -0800 Subject: [PATCH] Ensure repo is cloned before bisect commands are run --- .changeset/eighty-buckets-itch.md | 5 +++++ src/git.ts | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/eighty-buckets-itch.md diff --git a/.changeset/eighty-buckets-itch.md b/.changeset/eighty-buckets-itch.md new file mode 100644 index 0000000..74cfdeb --- /dev/null +++ b/.changeset/eighty-buckets-itch.md @@ -0,0 +1,5 @@ +--- +"every-ts": patch +--- + +Ensure repo is cloned before bisect commands are run diff --git a/src/git.ts b/src/git.ts index 8610374..71e994c 100644 --- a/src/git.ts +++ b/src/git.ts @@ -33,6 +33,8 @@ export class Bisect extends BaseCommand { args = Option.Proxy(); override async executeOrThrow(): Promise { + await ensureRepo(); + let startArgs: string[] = []; let revs: string[] | undefined; let endArgs: string[] = []; @@ -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();