Skip to content

Commit c975287

Browse files
6543lunny
authored andcommitted
fix (#9838)
1 parent b310686 commit c975287

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
@@ -373,7 +373,8 @@ func CompareDiff(ctx *context.Context) {
373373
return
374374
}
375375
defer headGitRepo.Close()
376-
if err := parseBaseRepoInfo(ctx, headRepo); err != nil {
376+
var err error
377+
if err = parseBaseRepoInfo(ctx, headRepo); err != nil {
377378
ctx.ServerError("parseBaseRepoInfo", err)
378379
return
379380
}
@@ -415,6 +416,11 @@ func CompareDiff(ctx *context.Context) {
415416
beforeCommitID := ctx.Data["BeforeCommitID"].(string)
416417
afterCommitID := ctx.Data["AfterCommitID"].(string)
417418

419+
if ctx.Data["Assignees"], err = ctx.Repo.Repository.GetAssignees(); err != nil {
420+
ctx.ServerError("GetAssignees", err)
421+
return
422+
}
423+
418424
ctx.Data["Title"] = "Comparing " + base.ShortSha(beforeCommitID) + "..." + base.ShortSha(afterCommitID)
419425

420426
ctx.Data["IsRepoToolbarCommits"] = true

0 commit comments

Comments
 (0)