mirror of
https://github.com/go-gitea/gitea
synced 2024-12-23 15:17:52 +01:00
fix (#9837)
This commit is contained in:
parent
6730df9e8c
commit
95cb921097
@ -381,7 +381,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
|
||||
}
|
||||
@ -423,6 +424,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 New Issue
Block a user