From 4e82d1752ff8595ad35e9eac69134a6bdf18e626 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Fri, 2 Aug 2013 15:20:55 +0300 Subject: [PATCH] Fixed Fixed issue when project default branch selected from non-exists and UI does not allow to change it --- app/views/projects/edit.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/projects/edit.html.haml b/app/views/projects/edit.html.haml index d273a5c..dec75ef 100644 --- a/app/views/projects/edit.html.haml +++ b/app/views/projects/edit.html.haml @@ -22,7 +22,7 @@ .input = f.text_area :description, placeholder: "awesome project", class: "span5", rows: 3, maxlength: 250 - - unless @project.empty_repo? + - if @project.repository.branch_names.any? .clearfix = f.label :default_branch, "Default Branch" .input= f.select(:default_branch, @repository.branch_names, {}, {class: 'chosen'}) -- libgit2 0.21.2