diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2020-02-01 21:54:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-01 15:54:25 +0200 |
commit | 3ccd271081f45a6950a058e800cd9efbfae36cad (patch) | |
tree | a09a80b397b2545b30b5774ecb774105424bf07d /routers | |
parent | 107a694fd6cced86bec8ab61cff3c472cbee08f1 (diff) | |
download | gitea-3ccd271081f45a6950a058e800cd9efbfae36cad.tar.gz gitea-3ccd271081f45a6950a058e800cd9efbfae36cad.zip |
Fix branch page pull request title and link error (#10092)
* Fix branch page pull request title and link error
* Fix ui
Diffstat (limited to 'routers')
-rw-r--r-- | routers/repo/branch.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/branch.go b/routers/repo/branch.go index 88bbe2be56..ea4f68948d 100644 --- a/routers/repo/branch.go +++ b/routers/repo/branch.go @@ -239,6 +239,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] @@ -261,7 +262,6 @@ func loadBranches(ctx *context.Context) []*Branch { mergeMovedOn = true } } - } isIncluded := divergence.Ahead == 0 && ctx.Repo.Repository.DefaultBranch != branchName |