From 697ad320799ca5fb384559df0fb8900ff316783cebd0d0421d0b6c21de8a5c61 Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Wed, 10 Jul 2024 10:30:44 +0200 Subject: [PATCH] . --- pr-review/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)