Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-09-12 22:39:27 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-09-12 22:39:53 +0400
commit069a6dfa9152dc61042bc3385651e9a81c8d3392 (patch)
tree6b29f55ac2cf8d3bb9dd5dc9318701db05b3eda9 /app/helpers/compare_helper.rb
parent6f037b9fe89290333a744d5d2a283b50880e14c0 (diff)
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