summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-29 12:42:01 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-29 12:42:01 +0300
commit549655765a443dde5dd46a52a2fb7cadd2dbd0e8 (patch)
tree813a204918bf9ec438bacbb884652abe027a80b2
parent378a3f5ca1286f4458632461067516e5c0a8f561 (diff)
downloadgitlab-ce-549655765a443dde5dd46a52a2fb7cadd2dbd0e8.tar.gz
Fix variable order on compare page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r--app/controllers/projects/compare_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/projects/compare_controller.rb b/app/controllers/projects/compare_controller.rb
index 5066754fd0d..7a671e8455d 100644
--- a/app/controllers/projects/compare_controller.rb
+++ b/app/controllers/projects/compare_controller.rb
@@ -14,9 +14,9 @@ class Projects::CompareController < Projects::ApplicationController
compare_result = CompareService.new.execute(
current_user,
@project,
- base_ref,
+ head_ref,
@project,
- head_ref
+ base_ref
)
@commits = compare_result.commits