mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Fix panic when no master branch
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
<label class="col-md-3 text-right">Default Branch</label>
|
||||
<div class="col-md-3">
|
||||
<select name="branch" id="repo-default-branch" class="form-control">
|
||||
<option value="{{.Repository.DefaultBranch}}">{{.Repository.DefaultBranch}}</option>
|
||||
{{if .Repository.DefaultBranch}}<option value="{{.Repository.DefaultBranch}}">{{.Repository.DefaultBranch}}</option>{{end}}
|
||||
{{range .Branches}}
|
||||
{{if eq . $.Repository.DefaultBranch}}{{else}}<option value="{{.}}">{{.}}</option>{{end}}
|
||||
{{end}}
|
||||
|
Reference in New Issue
Block a user