Skip to content

Commit

Permalink
fix: checkout branches 1 at a time, not multiple concatenated implici…
Browse files Browse the repository at this point in the history
…tly w/ `,` from .toString

Signed-off-by: Kipras Melnikovas <kipras@kipras.org>
  • Loading branch information
kiprasmel committed May 28, 2022
1 parent ceb5b48 commit 3c26bde
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions branchSequencer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,22 +383,22 @@ export const branchSequencer: BranchSequencer = async ({
? boundaries.length === originalBoundariesLength
: boundaries.length === 1;

/**
* https://libgit2.org/libgit2/#HEAD/group/checkout/git_checkout_head
*/
// await Git.Checkout.tree(repo, targetBranch as any); // TODO TS FIXME
execSyncInRepo(`${gitCmd} checkout ${targetBranch}`); // f this

await sequentialResolve(
targetBranch.map((x) => async () =>
targetBranch.map((x) => async () => {
/**
* https://libgit2.org/libgit2/#HEAD/group/checkout/git_checkout_head
*/
// await Git.Checkout.tree(repo, targetBranch as any); // TODO TS FIXME
execSyncInRepo(`${gitCmd} checkout ${x}`); // f this

await actionInsideEachCheckedOutBranch({
repo, //
targetBranch: x,
targetCommitSHA,
isLatestBranch,
execSyncInRepo,
})
)
});
})
);

return goNext();
Expand Down

0 comments on commit 3c26bde

Please sign in to comment.