From e5011a0e6d74071adfa17fd806234fd9108cb867 Mon Sep 17 00:00:00 2001 From: yp05327 <576951401@qq.com> Date: Sat, 5 Aug 2023 00:49:43 +0900 Subject: [PATCH] Remove commit load branches and tags in wiki repo (#26304) If click `load branches and tags`, you will get 500 error from backend, as it is a wiki repo. ![image](https://github.com/go-gitea/gitea/assets/18380374/1eb2a68b-cc72-4607-a1d1-4f74f83623f6) ![image](https://github.com/go-gitea/gitea/assets/18380374/c385de25-0cfb-4084-9452-d7e9d27deea9) Co-authored-by: Giteabot --- templates/repo/commit_load_branches_and_tags.tmpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/repo/commit_load_branches_and_tags.tmpl b/templates/repo/commit_load_branches_and_tags.tmpl index c19aa55c56..4d90696cb4 100644 --- a/templates/repo/commit_load_branches_and_tags.tmpl +++ b/templates/repo/commit_load_branches_and_tags.tmpl @@ -1,3 +1,4 @@ +{{if not .PageIsWiki}}
+{{end}}