1
1
mirror of https://github.com/go-gitea/gitea synced 2025-08-26 03:18:28 +00:00

Fix branch page pull request title and link error (#10092) (#10097)

* Fix branch page pull request title and link error (#10092)
This commit is contained in:
Lunny Xiao
2020-02-01 23:14:56 +08:00
committed by GitHub
parent f5727d83dd
commit 049af0d3d0
2 changed files with 6 additions and 6 deletions

View File

@@ -238,6 +238,7 @@ func loadBranches(ctx *context.Context) []*Branch {
} else {
repoIDToRepo[pr.BaseRepoID] = pr.BaseRepo
}
pr.Issue.Repo = pr.BaseRepo
if pr.HasMerged {
baseGitRepo, ok := repoIDToGitRepo[pr.BaseRepoID]
@@ -260,7 +261,6 @@ func loadBranches(ctx *context.Context) []*Branch {
mergeMovedOn = true
}
}
}
isIncluded := divergence.Ahead == 0 && ctx.Repo.Repository.DefaultBranch != branchName