Skip to content

Commit 748480b

Browse files
committed
fix not checking out latest boundary
Signed-off-by: Kipras Melnikovas <kipras@kipras.org>
1 parent f9c8419 commit 748480b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

branchSequencer.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,6 @@ export const branchSequencer: BranchSequencer = async ({
342342

343343
const originalBoundariesLength: number = branchesAndCommits.length;
344344

345-
const latestBoundary: SimpleBranchAndCommit = branchesAndCommits[branchesAndCommits.length - 1];
346-
347345
if (reverseCheckoutOrder) {
348346
branchesAndCommits.reverse();
349347
}
@@ -359,7 +357,7 @@ export const branchSequencer: BranchSequencer = async ({
359357
*/
360358

361359
// await repo.checkoutBranch(latestBoundary.branchEndFullName);
362-
execSyncInRepo(`${gitCmd} checkout ${latestBoundary.branchEndFullName}`);
360+
execSyncInRepo(`${gitCmd} checkout ${currentBranch.shorthand()}`);
363361

364362
return;
365363
}

0 commit comments

Comments
 (0)