.
This commit is contained in:
parent
ae1a862444
commit
bd82c134eb
@ -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]
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user