Skip to content

Commit 912a418

Browse files
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 <[email protected]> Co-authored-by: Yarden Shoham <[email protected]>
1 parent cc7a4f1 commit 912a418

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/repo/empty.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ git push -u origin {{.Repository.DefaultBranch}}</code></pre>
5050
git push -u origin {{.Repository.DefaultBranch}}</code></pre>
5151
</div>
5252
</div>
53-
{{template "repo/clone_script" .}}
5453
{{end}}
5554
{{else}}
5655
<div class="ui segment center">
5756
{{.locale.Tr "repo.empty_message"}}
5857
</div>
5958
{{end}}
59+
{{template "repo/clone_script" .}}
6060
</div>
6161
</div>
6262
</div>

0 commit comments

Comments
 (0)