This commit is contained in:
Adam Majer 2024-07-15 21:14:09 +02:00
parent ae1a862444
commit bd82c134eb
2 changed files with 2 additions and 2 deletions

View File

@ -293,7 +293,7 @@ func parseGitMsg(data <-chan byte) (gitMsg, error) {
msgType[pos] = c
pos++
} else {
return gitMsg{}, errors.New("Invalid character during object type parse")
return gitMsg{}, fmt.Errorf("Invalid character during object type parse '%c' at %d", c, pos)
}
}
msgType = msgType[:pos]

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.Sha)
commitId, ok := h.GitSubmoduleCommitId(common.DefaultGitPrj, req.Repository.Name, prjPr.Head.Name)
if !ok {
return fmt.Errorf("Cannot fetch submodule commit id in prjgit for '%s'", req.Repository.Name)