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 {
|
if isSameRepo {
|
||||||
headRepo = ctx.Repo.Repository
|
headRepo = ctx.Repo.Repository
|
||||||
headGitRepo = ctx.Repo.GitRepo
|
headGitRepo = ctx.Repo.GitRepo
|
||||||
c.Data["BaseName"] = headRepo.Owner.Name
|
ctx.Data["BaseName"] = headRepo.Owner.Name
|
||||||
} else {
|
} else {
|
||||||
headGitRepo, err = git.OpenRepository(models.RepoPath(headUser.Name, headRepo.Name))
|
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 {
|
if err != nil {
|
||||||
ctx.ServerError("OpenRepository", err)
|
ctx.ServerError("OpenRepository", err)
|
||||||
return nil, nil, nil, nil, "", ""
|
return nil, nil, nil, nil, "", ""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user