We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb12828 commit 7309fc0Copy full SHA for 7309fc0
branchSequencer.ts
@@ -272,12 +272,19 @@ export const branchSequencer: BranchSequencer = async ({
272
initialBranch,
273
currentBranch,
274
});
275
+
276
+ /**
277
+ * remove the initial branch
278
+ */
279
+ branchesAndCommits.shift();
280
281
+ const originalBoundariesLength: number = branchesAndCommits.length;
282
283
if (reverseCheckoutOrder) {
284
branchesAndCommits.reverse();
285
}
- const originalBoundariesLength: number = branchesAndCommits.length;
286
- return checkout(branchesAndCommits.slice(1) as any); // TODO TS
287
+ return checkout(branchesAndCommits);
288
289
async function checkout(boundaries: SimpleBranchAndCommit[]): Promise<void> {
290
if (!boundaries.length) {
0 commit comments