Przeglądaj źródła

fix (#9838)

tags/v1.10.3
6543 4 lat temu
rodzic
commit
c975287149
1 zmienionych plików z 7 dodań i 1 usunięć
  1. 7
    1
      routers/repo/compare.go

+ 7
- 1
routers/repo/compare.go Wyświetl plik

@@ -373,7 +373,8 @@ func CompareDiff(ctx *context.Context) {
return
}
defer headGitRepo.Close()
if err := parseBaseRepoInfo(ctx, headRepo); err != nil {
var err error
if err = parseBaseRepoInfo(ctx, headRepo); err != nil {
ctx.ServerError("parseBaseRepoInfo", err)
return
}
@@ -415,6 +416,11 @@ func CompareDiff(ctx *context.Context) {
beforeCommitID := ctx.Data["BeforeCommitID"].(string)
afterCommitID := ctx.Data["AfterCommitID"].(string)

if ctx.Data["Assignees"], err = ctx.Repo.Repository.GetAssignees(); err != nil {
ctx.ServerError("GetAssignees", err)
return
}

ctx.Data["Title"] = "Comparing " + base.ShortSha(beforeCommitID) + "..." + base.ShortSha(afterCommitID)

ctx.Data["IsRepoToolbarCommits"] = true

Ładowanie…
Anuluj
Zapisz