summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2012-09-05 01:12:44 -0400
committerRobert Speicher <rspeicher@gmail.com>2012-09-05 01:12:44 -0400
commita9f275bc201e666b9f26768aa228aca8250d5a94 (patch)
treee29c214694cb7ce9c55270d3ff2d8de287d9106e
parent861a51488a44eac143ac4f44802fdf05fbd8f4c1 (diff)
downloadgitlab-ce-a9f275bc201e666b9f26768aa228aca8250d5a94.tar.gz
Fix load_refs in ApplicationController after default_branch change
As a last resort it was calling a method that didn't exist. Woops!
-rw-r--r--app/controllers/application_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index d53b23bb246..dae2e906256 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -124,7 +124,7 @@ class ApplicationController < ActionController::Base
if params[:ref].blank?
@branch = params[:branch].blank? ? nil : params[:branch]
@tag = params[:tag].blank? ? nil : params[:tag]
- @ref = @branch || @tag || @project.try(:default_branch) || Repository.default_ref
+ @ref = @branch || @tag || @project.try(:default_branch) || 'master'
else
@ref = params[:ref]
end