.
This commit is contained in:
parent
71aa592fb1
commit
61b6191af2
@ -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.Name)
|
||||
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)
|
||||
@ -74,6 +74,9 @@ func processPullRequestSync(h *common.RequestHandler) error {
|
||||
|
||||
Update to %s`, req.Pull_Request.Head.Sha)
|
||||
|
||||
h.Log("will create new commit msg: %s", commitMsg)
|
||||
h.Log("error? %v", h.Error)
|
||||
|
||||
// we need to update prjgit PR with the new head hash
|
||||
branchName := prGitBranchNameForPR(req)
|
||||
updateOrCreatePRBranch(h, prjPr.Base.Repo, commitMsg, branchName)
|
||||
|
Loading…
Reference in New Issue
Block a user