-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix TemplateRepo no longer in models.repo #17993
Conversation
…ry generated from template
@Caellion Hello, would you please give more detail description about this issue? Thanks |
Certainly. Due to recent refactors of repo model, the template repo/header.tmpl cannot find TemplateRepo, at this line: gitea/templates/repo/header.tmpl Line 41 in f58e687
This causes gitea to display error 500 on any repo which has been initialized from a template. |
Co-authored-by: Lunny Xiao <[email protected]>
make L-G-T-M work. |
* 'main' of https://github.com/Caellion/gitea: Add Reindex buttons to repository settings page (go-gitea#17494) Set correct language for Dockerfile variants (go-gitea#17999) Fix TemplateRepo no longer in models.repo (go-gitea#17993)
* Fixes error 500 that appears when trying to browse code of a repository generated from template * forgot to update comment * Update models/repo/repo.go Co-authored-by: Lunny Xiao <[email protected]> * Update repo.go Co-authored-by: Lunny Xiao <[email protected]>
Fixes error 500 that appears when trying to browse code of a repository generated from template