Commit a9f275bc201e666b9f26768aa228aca8250d5a94
1 parent
861a5148
Exists in
master
and in
4 other branches
Fix load_refs in ApplicationController after default_branch change
As a last resort it was calling a method that didn't exist. Woops!
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/application_controller.rb
@@ -124,7 +124,7 @@ class ApplicationController < ActionController::Base | @@ -124,7 +124,7 @@ class ApplicationController < ActionController::Base | ||
124 | if params[:ref].blank? | 124 | if params[:ref].blank? |
125 | @branch = params[:branch].blank? ? nil : params[:branch] | 125 | @branch = params[:branch].blank? ? nil : params[:branch] |
126 | @tag = params[:tag].blank? ? nil : params[:tag] | 126 | @tag = params[:tag].blank? ? nil : params[:tag] |
127 | - @ref = @branch || @tag || @project.try(:default_branch) || Repository.default_ref | 127 | + @ref = @branch || @tag || @project.try(:default_branch) || 'master' |
128 | else | 128 | else |
129 | @ref = params[:ref] | 129 | @ref = params[:ref] |
130 | end | 130 | end |