Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
MoizAdnan committed Aug 7, 2023
2 parents dd99efd + f1c907b commit caa1736
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/handlers/Git/Git-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const checkout = async (repoPath: string, branch: string) => {
}

export const checkoutBranch = async (repoPath: string, localBranch: string, branch: string) => {
const command = `git -C ${repoPath} checkout ${localBranch} ${branch}`
const command = `git -C ${repoPath} checkout -b ${localBranch} ${branch}`
const { stdout } = await exec(command, true)
return stdout?.toString()
}

0 comments on commit caa1736

Please sign in to comment.