0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-24 23:52:46 +01:00

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>
This commit is contained in:
Yarden Shoham 2023-04-26 06:28:37 +03:00 committed by GitHub
parent 59d060622d
commit f2f0fb43e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>