.
This commit is contained in:
parent
fb8e5d5e03
commit
62abc9fc75
@ -52,6 +52,12 @@ func processPullRequestSync(h *common.RequestHandler) error {
|
||||
// is still pointing to the HEAD of the PR
|
||||
prjPr := h.GetAssociatedPrjGitPR(req)
|
||||
|
||||
if h.HasError() {
|
||||
h.LogError("%v", h.Error)
|
||||
return h.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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user