Commit a9f275bc authored by Robert Speicher's avatar Robert Speicher

Fix load_refs in ApplicationController after default_branch change

As a last resort it was calling a method that didn't exist. Woops!
parent 861a5148
...@@ -124,7 +124,7 @@ class ApplicationController < ActionController::Base ...@@ -124,7 +124,7 @@ class ApplicationController < ActionController::Base
if params[:ref].blank? if params[:ref].blank?
@branch = params[:branch].blank? ? nil : params[:branch] @branch = params[:branch].blank? ? nil : params[:branch]
@tag = params[:tag].blank? ? nil : params[:tag] @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 else
@ref = params[:ref] @ref = params[:ref]
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment