summaryrefslogtreecommitdiffstats
path: root/routers/repo
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-04-10 13:26:37 +0200
committerGitHub <noreply@github.com>2020-04-10 14:26:37 +0300
commitbc362ea3c611a94e7920a3cf4691fd108f874ef0 (patch)
treeec573e8194163a023f5480515ddb8f44f5bc4af5 /routers/repo
parent0a2cba972a18de5b772f001d570fff96277cd808 (diff)
downloadgitea-bc362ea3c611a94e7920a3cf4691fd108f874ef0.tar.gz
gitea-bc362ea3c611a94e7920a3cf4691fd108f874ef0.zip
remove package code.gitea.io/gitea/modules/git import out of models (#11025)
Diffstat (limited to 'routers/repo')
-rw-r--r--routers/repo/issue.go2
-rw-r--r--routers/repo/pull.go1
2 files changed, 2 insertions, 1 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go
index 0a059bf789..3655de7ed4 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -240,7 +240,7 @@ func issues(ctx *context.Context, milestoneID int64, isPullOption util.OptionalB
return
}
- commitStatus[issues[i].PullRequest.ID], _ = issues[i].PullRequest.GetLastCommitStatus()
+ commitStatus[issues[i].PullRequest.ID], _ = pull_service.GetLastCommitStatus(issues[i].PullRequest)
}
}
diff --git a/routers/repo/pull.go b/routers/repo/pull.go
index 55b8bbb42f..ef000208f4 100644
--- a/routers/repo/pull.go
+++ b/routers/repo/pull.go
@@ -433,6 +433,7 @@ func PrepareViewPullInfo(ctx *context.Context, issue *models.Issue) *git.Compare
return nil
}
ctx.Data["Divergence"] = divergence
+ ctx.Data["GetCommitMessages"] = pull_service.GetCommitMessages(pull)
}
sha, err := baseGitRepo.GetRefCommitID(pull.GetGitRefName())