From 912a418920c4e5617cf92df0066dca27635f18e4 Mon Sep 17 00:00:00 2001 From: Giteabot Date: Wed, 26 Apr 2023 04:13:16 -0400 Subject: [PATCH] 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 --- templates/repo/empty.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" .}} -- 2.39.5