Skip to content

Commit 2f3a602

Browse files
6543lunny
authored andcommitted
fix (#9836)
1 parent 737ea6d commit 2f3a602

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

routers/repo/compare.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,8 @@ func CompareDiff(ctx *context.Context) {
379379
}
380380
defer headGitRepo.Close()
381381

382-
if err := parseBaseRepoInfo(ctx, headRepo); err != nil {
382+
var err error
383+
if err = parseBaseRepoInfo(ctx, headRepo); err != nil {
383384
ctx.ServerError("parseBaseRepoInfo", err)
384385
return
385386
}
@@ -421,6 +422,11 @@ func CompareDiff(ctx *context.Context) {
421422
beforeCommitID := ctx.Data["BeforeCommitID"].(string)
422423
afterCommitID := ctx.Data["AfterCommitID"].(string)
423424

425+
if ctx.Data["Assignees"], err = ctx.Repo.Repository.GetAssignees(); err != nil {
426+
ctx.ServerError("GetAssignees", err)
427+
return
428+
}
429+
424430
ctx.Data["Title"] = "Comparing " + base.ShortSha(beforeCommitID) + "..." + base.ShortSha(afterCommitID)
425431

426432
ctx.Data["IsRepoToolbarCommits"] = true

0 commit comments

Comments
 (0)