summaryrefslogtreecommitdiff
path: root/app/helpers/compare_helper.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-09-12 21:39:27 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-09-12 21:39:53 +0300
commit069a6dfa9152dc61042bc3385651e9a81c8d3392 (patch)
tree6b29f55ac2cf8d3bb9dd5dc9318701db05b3eda9 /app/helpers/compare_helper.rb
parent6f037b9fe89290333a744d5d2a283b50880e14c0 (diff)
downloadgitlab-ce-069a6dfa9152dc61042bc3385651e9a81c8d3392.tar.gz
Compare link for branches
Diffstat (limited to 'app/helpers/compare_helper.rb')
-rw-r--r--app/helpers/compare_helper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/helpers/compare_helper.rb b/app/helpers/compare_helper.rb
index e1dd89dcd3d..ea2540bf385 100644
--- a/app/helpers/compare_helper.rb
+++ b/app/helpers/compare_helper.rb
@@ -3,6 +3,7 @@ module CompareHelper
params[:from].present? && params[:to].present? &&
@repository.branch_names.include?(params[:from]) &&
@repository.branch_names.include?(params[:to]) &&
+ params[:from] != params[:to] &&
!@refs_are_same
end