aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYarden Shoham <git@yardenshoham.com>2023-04-26 06:28:37 +0300
committerGitHub <noreply@github.com>2023-04-25 23:28:37 -0400
commitf2f0fb43e04c577d001da453f994d232505f3e6b (patch)
tree4f621a973256abba720c73e1deb6b9acf252cc56
parent59d060622d375c4123ea88e2fa6c4f34d4fea4d3 (diff)
downloadgitea-f2f0fb43e04c577d001da453f994d232505f3e6b.tar.gz
gitea-f2f0fb43e04c577d001da453f994d232505f3e6b.zip
Fix broken clone script on an empty archived repo (#24339)
I made it render the script even if the repo is archived - Fixes #24324 Signed-off-by: Yarden Shoham <git@yardenshoham.com>
-rw-r--r--templates/repo/empty.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/empty.tmpl b/templates/repo/empty.tmpl
index 0acb08933a..fbe61afeaa 100644
--- a/templates/repo/empty.tmpl
+++ b/templates/repo/empty.tmpl
@@ -63,13 +63,13 @@ git push -u origin {{.Repository.DefaultBranch}}</code></pre>
git push -u origin {{.Repository.DefaultBranch}}</code></pre>
</div>
</div>
- {{template "repo/clone_script" .}}
{{end}}
{{else}}
<div class="ui segment center">
{{.locale.Tr "repo.empty_message"}}
</div>
{{end}}
+ {{template "repo/clone_script" .}}
</div>
</div>
</div>