diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-05-09 22:25:46 +0200 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-05-09 22:25:52 +0200 |
commit | 8f75ab21d021fb5335ed9e084157cf2bc06caca1 (patch) | |
tree | 5420fb7bc253329e65c14c99c4c926a7c5128d9d /app/controllers | |
parent | 40c8295a24aace3210a8bc485f853d556a8bdc5c (diff) | |
download | gitlab-ce-8f75ab21d021fb5335ed9e084157cf2bc06caca1.tar.gz |
Link Commits tab to current branch from Compare page.
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects/compare_controller.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/projects/compare_controller.rb b/app/controllers/projects/compare_controller.rb index 7c20b81c0b1..c5f085c236f 100644 --- a/app/controllers/projects/compare_controller.rb +++ b/app/controllers/projects/compare_controller.rb @@ -6,11 +6,12 @@ class Projects::CompareController < Projects::ApplicationController before_action :authorize_download_code! def index + @ref = Addressable::URI.unescape(params[:to]) end def show base_ref = Addressable::URI.unescape(params[:from]) - head_ref = Addressable::URI.unescape(params[:to]) + @ref = head_ref = Addressable::URI.unescape(params[:to]) compare_result = CompareService.new.execute( current_user, |