From: Giteabot Date: Wed, 26 Apr 2023 08:13:16 +0000 (-0400) Subject: Fix broken clone script on an empty archived repo (#24339) (#24348) X-Git-Tag: v1.19.2~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=912a418920c4e5617cf92df0066dca27635f18e4;p=gitea.git Fix broken clone script on an empty archived repo (#24339) (#24348) Backport #24339 by @yardenshoham I made it render the script even if the repo is archived - Fixes #24324 Signed-off-by: Yarden Shoham Co-authored-by: Yarden Shoham --- diff --git a/templates/repo/empty.tmpl b/templates/repo/empty.tmpl index cb883e8df5..d2967e6181 100644 --- a/templates/repo/empty.tmpl +++ b/templates/repo/empty.tmpl @@ -50,13 +50,13 @@ git push -u origin {{.Repository.DefaultBranch}} git push -u origin {{.Repository.DefaultBranch}} - {{template "repo/clone_script" .}} {{end}} {{else}}
{{.locale.Tr "repo.empty_message"}}
{{end}} + {{template "repo/clone_script" .}}