From 45e648658e53839f9a2d86cd443fb7a98ddaf86b Mon Sep 17 00:00:00 2001 From: huhu Date: Fri, 11 Jun 2021 18:25:31 +0900 Subject: fix: git client branch function (#213) --- ext/git/client.go | 4 ++-- 1 file 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) } -- cgit v1.2.3