From f2f0fb43e04c577d001da453f994d232505f3e6b Mon Sep 17 00:00:00 2001 From: Yarden Shoham Date: Wed, 26 Apr 2023 06:28:37 +0300 Subject: [PATCH] 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 --- 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 0acb08933aa1..fbe61afeaa18 100644 --- a/templates/repo/empty.tmpl +++ b/templates/repo/empty.tmpl @@ -63,13 +63,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" .}}