diff options
Diffstat (limited to 'ext/git/client.go')
| -rw-r--r-- | ext/git/client.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/git/client.go b/ext/git/client.go index 98ad45c..3cd6bb2 100644 --- a/ext/git/client.go +++ b/ext/git/client.go @@ -566,13 +566,13 @@ func (m *nativeGitClient) Commit(pathSpec string, opts *CommitOptions) error { // Branch creates a new target branch from a given source branch func (m *nativeGitClient) Branch(sourceBranch string, targetBranch string) error { if sourceBranch != "" { - _, err := m.runCmd("git", "checkout", sourceBranch) + _, err := m.runCmd("checkout", sourceBranch) if err != nil { return fmt.Errorf("could not checkout source branch: %v", err) } } - _, err := m.runCmd("git", "branch", targetBranch) + _, err := m.runCmd("branch", targetBranch) if err != nil { return fmt.Errorf("could not create new branch: %v", err) } |
