summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorhuhu <huruilingjp@gmail.com>2021-06-11 18:25:31 +0900
committerGitHub <noreply@github.com>2021-06-11 11:25:31 +0200
commit45e648658e53839f9a2d86cd443fb7a98ddaf86b (patch)
tree88f10ab165e815dd70205a0fff44061843c351e9 /ext
parent77081181815015cb863e643103746f03d88f46cf (diff)
fix: git client branch function (#213)
Diffstat (limited to 'ext')
-rw-r--r--ext/git/client.go4
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)
}