File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -373,7 +373,8 @@ func CompareDiff(ctx *context.Context) {
373
373
return
374
374
}
375
375
defer headGitRepo .Close ()
376
- if err := parseBaseRepoInfo (ctx , headRepo ); err != nil {
376
+ var err error
377
+ if err = parseBaseRepoInfo (ctx , headRepo ); err != nil {
377
378
ctx .ServerError ("parseBaseRepoInfo" , err )
378
379
return
379
380
}
@@ -415,6 +416,11 @@ func CompareDiff(ctx *context.Context) {
415
416
beforeCommitID := ctx .Data ["BeforeCommitID" ].(string )
416
417
afterCommitID := ctx .Data ["AfterCommitID" ].(string )
417
418
419
+ if ctx .Data ["Assignees" ], err = ctx .Repo .Repository .GetAssignees (); err != nil {
420
+ ctx .ServerError ("GetAssignees" , err )
421
+ return
422
+ }
423
+
418
424
ctx .Data ["Title" ] = "Comparing " + base .ShortSha (beforeCommitID ) + "..." + base .ShortSha (afterCommitID )
419
425
420
426
ctx .Data ["IsRepoToolbarCommits" ] = true
You can’t perform that action at this time.
0 commit comments