Commit 02f48053 authored by Rubén Dávila's avatar Rubén Dávila Committed by Robert Speicher

No longer need to ignore temporary branch.

* Now it's only created when user choose to create a MR and
  logic to hide it is handled by https://gitlab.com/gitlab-org/gitlab-ce/blob/50595af7b0e304f16e2955109abd2d25cd96efda/app/helpers/application_helper.rb#L139
parent f088caca
......@@ -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
......
......@@ -216,7 +216,7 @@ class Commit
end
def revert_branch_name
"revert-#{project.id}-#{short_id}"
"revert-#{short_id}"
end
def revert_message
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment