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

Commit

Permalink
Added new local branch flag (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
MoizAdnan authored Aug 6, 2023
1 parent 1b78b8c commit f1c907b
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 f1c907b

Please sign in to comment.