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