diff --git a/pr-review/main.go b/pr-review/main.go index 0990935..9b74191 100644 --- a/pr-review/main.go +++ b/pr-review/main.go @@ -38,7 +38,7 @@ PullRequest: %s#%d`, req.Repository.Name, GitAuthor, req.Repository.Name, req.Pu } h.GitExec("", "clone", "--depth", "1", prjGit.SSHURL, common.DefaultGitPrj) - h.GitExec("", "checkout", "-B", branchName, prjGit.DefaultBranch) + h.GitExec(common.DefaultGitPrj, "checkout", "-B", branchName, prjGit.DefaultBranch) h.GitExec(common.DefaultGitPrj, "submodule", "update", "--checkout", "--depth", "1", req.Repository.Name) h.GitExec(path.Join(common.DefaultGitPrj, req.Repository.Name), "fetch", "--depth", "1", req.Pull_Request.Head.Sha) h.GitExec(path.Join(common.DefaultGitPrj, req.Repository.Name), "checkout", req.Pull_Request.Head.Sha)