Skip to content

Commit 45e6486

Browse files
authored
fix: git client branch function (#213)
1 parent 7708118 commit 45e6486

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/git/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,13 +566,13 @@ func (m *nativeGitClient) Commit(pathSpec string, opts *CommitOptions) error {
566566
// Branch creates a new target branch from a given source branch
567567
func (m *nativeGitClient) Branch(sourceBranch string, targetBranch string) error {
568568
if sourceBranch != "" {
569-
_, err := m.runCmd("git", "checkout", sourceBranch)
569+
_, err := m.runCmd("checkout", sourceBranch)
570570
if err != nil {
571571
return fmt.Errorf("could not checkout source branch: %v", err)
572572
}
573573
}
574574

575-
_, err := m.runCmd("git", "branch", targetBranch)
575+
_, err := m.runCmd("branch", targetBranch)
576576
if err != nil {
577577
return fmt.Errorf("could not create new branch: %v", err)
578578
}

0 commit comments

Comments
 (0)