Commit e1a3c8cd authored by Rubén Dávila's avatar Rubén Dávila Committed by Robert Speicher
Browse files

Don't show last event message on top when reverse branch was created under the hood.

parent f4ff2ba5
......@@ -135,6 +135,8 @@ def show_last_push_widget?(event)
# 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
true
end
......
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