Fix to corrext context variable name
This commit is contained in:
parent
5d9bbd9b69
commit
6c9d94e05a
|
@ -615,10 +615,10 @@ func ParseCompareInfo(ctx *context.Context) (*models.User, *models.Repository, *
|
|||
if isSameRepo {
|
||||
headRepo = ctx.Repo.Repository
|
||||
headGitRepo = ctx.Repo.GitRepo
|
||||
c.Data["BaseName"] = headRepo.Owner.Name
|
||||
ctx.Data["BaseName"] = headRepo.Owner.Name
|
||||
} else {
|
||||
headGitRepo, err = git.OpenRepository(models.RepoPath(headUser.Name, headRepo.Name))
|
||||
c.Data["BaseName"] = headRepo.BaseRepo.Owner.Name
|
||||
ctx.Data["BaseName"] = headRepo.BaseRepo.Owner.Name
|
||||
if err != nil {
|
||||
ctx.ServerError("OpenRepository", err)
|
||||
return nil, nil, nil, nil, "", ""
|
||||
|
|
Loading…
Reference in New Issue
Block a user