summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2020-02-01 21:54:25 +0800
committerGitHub <noreply@github.com>2020-02-01 15:54:25 +0200
commit3ccd271081f45a6950a058e800cd9efbfae36cad (patch)
treea09a80b397b2545b30b5774ecb774105424bf07d /routers
parent107a694fd6cced86bec8ab61cff3c472cbee08f1 (diff)
downloadgitea-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.go2
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