fix default branch
This commit is contained in:
parent
4c3a61a760
commit
3a14432879
3 changed files with 2 additions and 4 deletions
|
@ -548,9 +548,8 @@ h4.dash-tabs {
|
|||
h4.middle-panel {
|
||||
margin: 0;
|
||||
border-bottom: 1px solid #ccc;
|
||||
padding: 10px 10px;
|
||||
padding: 10px 20px;
|
||||
font-size: 11px;
|
||||
padding-left:20px;
|
||||
background: #F7F7F7;
|
||||
height:30px;
|
||||
|
||||
|
|
|
@ -9,7 +9,6 @@ class ProjectsController < ApplicationController
|
|||
before_filter :authorize_read_project!, :except => [:index, :new, :create]
|
||||
before_filter :authorize_admin_project!, :only => [:edit, :update, :destroy]
|
||||
before_filter :require_non_empty_project, :only => [:blob, :tree, :graph]
|
||||
before_filter :load_refs, :only => :tree # load @branch, @tag & @ref
|
||||
|
||||
def index
|
||||
source = current_user.projects
|
||||
|
|
|
@ -53,7 +53,7 @@ module ApplicationHelper
|
|||
[ "Tag", @project.tags ]
|
||||
]
|
||||
|
||||
grouped_options_for_select(options, @ref)
|
||||
grouped_options_for_select(options, @ref || @project.default_branch)
|
||||
end
|
||||
|
||||
def markdown(text)
|
||||
|
|
Loading…
Reference in a new issue