diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/setting.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/setting.tmpl b/templates/repo/setting.tmpl index afa66d1de1..f0f041dee8 100644 --- a/templates/repo/setting.tmpl +++ b/templates/repo/setting.tmpl @@ -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}} |