Skip to content

Commit 62ad4b1

Browse files
committed
fix: checkout branches 1 at a time, not multiple concatenated implicitly w/ , from .toString
Signed-off-by: Kipras Melnikovas <[email protected]>
1 parent 2bbecff commit 62ad4b1

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

branchSequencer.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -383,22 +383,22 @@ export const branchSequencer: BranchSequencer = async ({
383383
? boundaries.length === originalBoundariesLength
384384
: boundaries.length === 1;
385385

386-
/**
387-
* https://libgit2.org/libgit2/#HEAD/group/checkout/git_checkout_head
388-
*/
389-
// await Git.Checkout.tree(repo, targetBranch as any); // TODO TS FIXME
390-
execSyncInRepo(`${gitCmd} checkout ${targetBranch}`); // f this
391-
392386
await sequentialResolve(
393-
targetBranch.map((x) => async () =>
387+
targetBranch.map((x) => async () => {
388+
/**
389+
* https://libgit2.org/libgit2/#HEAD/group/checkout/git_checkout_head
390+
*/
391+
// await Git.Checkout.tree(repo, targetBranch as any); // TODO TS FIXME
392+
execSyncInRepo(`${gitCmd} checkout ${x}`); // f this
393+
394394
await actionInsideEachCheckedOutBranch({
395395
repo, //
396396
targetBranch: x,
397397
targetCommitSHA,
398398
isLatestBranch,
399399
execSyncInRepo,
400-
})
401-
)
400+
});
401+
})
402402
);
403403

404404
return goNext();

0 commit comments

Comments
 (0)