mirror of
https://github.com/go-gitea/gitea
synced 2024-11-19 00:11:24 +01:00
fix (#9836)
This commit is contained in:
parent
737ea6d83c
commit
2f3a602b3c
1 changed files with 7 additions and 1 deletions
|
@ -379,7 +379,8 @@ func CompareDiff(ctx *context.Context) {
|
|||
}
|
||||
defer headGitRepo.Close()
|
||||
|
||||
if err := parseBaseRepoInfo(ctx, headRepo); err != nil {
|
||||
var err error
|
||||
if err = parseBaseRepoInfo(ctx, headRepo); err != nil {
|
||||
ctx.ServerError("parseBaseRepoInfo", err)
|
||||
return
|
||||
}
|
||||
|
@ -421,6 +422,11 @@ func CompareDiff(ctx *context.Context) {
|
|||
beforeCommitID := ctx.Data["BeforeCommitID"].(string)
|
||||
afterCommitID := ctx.Data["AfterCommitID"].(string)
|
||||
|
||||
if ctx.Data["Assignees"], err = ctx.Repo.Repository.GetAssignees(); err != nil {
|
||||
ctx.ServerError("GetAssignees", err)
|
||||
return
|
||||
}
|
||||
|
||||
ctx.Data["Title"] = "Comparing " + base.ShortSha(beforeCommitID) + "..." + base.ShortSha(afterCommitID)
|
||||
|
||||
ctx.Data["IsRepoToolbarCommits"] = true
|
||||
|
|
Loading…
Reference in a new issue