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 @@ -381,7 +381,8 @@ func CompareDiff(ctx *context.Context) {
381
381
}
382
382
defer headGitRepo .Close ()
383
383
384
- if err := parseBaseRepoInfo (ctx , headRepo ); err != nil {
384
+ var err error
385
+ if err = parseBaseRepoInfo (ctx , headRepo ); err != nil {
385
386
ctx .ServerError ("parseBaseRepoInfo" , err )
386
387
return
387
388
}
@@ -423,6 +424,11 @@ func CompareDiff(ctx *context.Context) {
423
424
beforeCommitID := ctx .Data ["BeforeCommitID" ].(string )
424
425
afterCommitID := ctx .Data ["AfterCommitID" ].(string )
425
426
427
+ if ctx .Data ["Assignees" ], err = ctx .Repo .Repository .GetAssignees (); err != nil {
428
+ ctx .ServerError ("GetAssignees" , err )
429
+ return
430
+ }
431
+
426
432
ctx .Data ["Title" ] = "Comparing " + base .ShortSha (beforeCommitID ) + "..." + base .ShortSha (afterCommitID )
427
433
428
434
ctx .Data ["IsRepoToolbarCommits" ] = true
You can’t perform that action at this time.
0 commit comments