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 | 124 | if params[:ref].blank? |
125 | 125 | @branch = params[:branch].blank? ? nil : params[:branch] |
126 | 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 | 128 | else |
129 | 129 | @ref = params[:ref] |
130 | 130 | end | ... | ... |