summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/helpers/application_helper.rb2
-rw-r--r--app/models/commit.rb2
2 files changed, 1 insertions, 3 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 44a62143cf7..f0aa2b57121 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -135,8 +135,6 @@ module ApplicationHelper
# Skip if user removed branch right after that
return false unless project.repository.branch_names.include?(event.branch_name)
- return false if event.branch_name =~ Gitlab::Git::REVERT_BRANCH_PATTERN
-
true
end
diff --git a/app/models/commit.rb b/app/models/commit.rb
index 1237c50b759..beae2fe7a1a 100644
--- a/app/models/commit.rb
+++ b/app/models/commit.rb
@@ -216,7 +216,7 @@ class Commit
end
def revert_branch_name
- "revert-#{project.id}-#{short_id}"
+ "revert-#{short_id}"
end
def revert_message