Skip to content

Commit

Permalink
Fix broken clone script on an empty archived repo (go-gitea#24339) (g…
Browse files Browse the repository at this point in the history
…o-gitea#24348)

Backport go-gitea#24339 by @yardenshoham

I made it render the script even if the repo is archived

- Fixes go-gitea#24324

Signed-off-by: Yarden Shoham <[email protected]>
Co-authored-by: Yarden Shoham <[email protected]>
  • Loading branch information
GiteaBot and yardenshoham authored Apr 26, 2023
1 parent cc7a4f1 commit 912a418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/repo/empty.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,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>
Expand Down

0 comments on commit 912a418

Please sign in to comment.