]> source.dussan.org Git - gitea.git/commit
remove unused call to $.HeadRepo in view_title template (#32317)
authorRowan Bohde <rowan.bohde@gmail.com>
Wed, 30 Oct 2024 05:12:48 +0000 (00:12 -0500)
committerGitHub <noreply@github.com>
Wed, 30 Oct 2024 05:12:48 +0000 (13:12 +0800)
commit1cd3f698591edf4fba7880a150b05855cdf40d47
treea2c851ac871a5b0f60172cb02072348c149612a2
parentfeca8802b85dd75090c533ebdb92835d3d529f17
remove unused call to $.HeadRepo in view_title template (#32317)

This is only populated in
[`ParseCompareInfo`](https://github.com/search?q=repo%3Ago-gitea%2Fgitea%20%20.Data%5B%22HeadRepo%22%5D&type=code)
which is called in two handlers:

*
[`CompareAndPullRequestPost`](https://github.com/go-gitea/gitea/blob/9206fbb55fd28f21720072fce6a36cc22277934c/routers/web/repo/pull.go#L1246)
- a JSON post handler that doesn't render templates
*
[`CompareDiff`](https://github.com/go-gitea/gitea/blob/9206fbb55fd28f21720072fce6a36cc22277934c/routers/web/repo/compare.go#L706)
- which can render `diff/box.tmpl` and `diff/compare.tmpl`
templates/repo/issue/view_title.tmpl