Skip to content

Commit

Permalink
fix: switch branch with clone instead of checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
Gio Divino authored and certainty3452 committed Aug 7, 2024
1 parent 4c15505 commit 75ec167
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/actions/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,15 @@ export async function cloneRepo({
await git.clone({
url: remoteUrl,
dir,
ref: branch,
noCheckout: false,
});

await git.addRemote({
dir,
remote,
url: remoteUrl,
});

await git.checkout({
dir,
ref: branch,
});
}

export async function commitAndPushBranch({
Expand Down

0 comments on commit 75ec167

Please sign in to comment.