This commit is contained in:
Adam Majer 2024-07-15 21:01:13 +02:00
parent 88770fda5b
commit ae1a862444

View File

@ -59,7 +59,7 @@ func processPullRequestSync(h *common.RequestHandler) error {
h.Log("associated pr: %v", prjPr)
h.GitExec("", "clone", "--branch", prjPr.Head.Name, "--depth", "1", prjPr.Head.Repo.SSHURL, common.DefaultGitPrj)
commitId, ok := h.GitSubmoduleCommitId(common.DefaultGitPrj, req.Repository.Name, prjPr.Head.Ref)
commitId, ok := h.GitSubmoduleCommitId(common.DefaultGitPrj, req.Repository.Name, prjPr.Head.Sha)
if !ok {
return fmt.Errorf("Cannot fetch submodule commit id in prjgit for '%s'", req.Repository.Name)