summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorRubén Dávila <rdavila84@gmail.com>2016-02-02 20:51:37 -0500
committerRobert Speicher <rspeicher@gmail.com>2016-02-19 13:14:50 -0500
commitb6fe51b901ebba9892718df53b5c0b4515b8d758 (patch)
treec4876b8249d7f7a76a2b2ec31e3513a6acedecc2 /app/helpers
parent1708e1fc03439adec8e4f3aa341faaf6f378f192 (diff)
downloadgitlab-ce-b6fe51b901ebba9892718df53b5c0b4515b8d758.tar.gz
Some updates from last code review.
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/application_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index b7e7d0c5a3b..44a62143cf7 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -135,7 +135,7 @@ module ApplicationHelper
# Skip if user removed branch right after that
return false unless project.repository.branch_names.include?(event.branch_name)
- return false if Gitlab::Git::REVERT_BRANCH_PATTERN === event.branch_name
+ return false if event.branch_name =~ Gitlab::Git::REVERT_BRANCH_PATTERN
true
end