From e1a3c8cd1a4f2a9a8a8cb4bc2df50398fbf1d604 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20D=C3=A1vila?= Date: Mon, 1 Feb 2016 14:30:36 -0500 Subject: [PATCH] Don't show last event message on top when reverse branch was created under the hood. --- app/helpers/application_helper.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index f0aa2b5712..b7e7d0c5a3 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -135,6 +135,8 @@ 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 + true end