mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-26 06:16:56 +09:00
Fix panic when no master branch
This commit is contained in:
1 parent
0a187dbef5
commit
75109bbd65
6 files changed
+24
-13
No files matched your search
@@ -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