Commit a4ae4694 authored by randx's avatar randx

Fix issue #987 #972

parent 19d0dc3c
......@@ -90,7 +90,10 @@ module ApplicationHelper
end
def show_last_push_widget?(event)
event && event.last_push_to_non_root? &&
event.project && event.project.merge_requests_enabled
event &&
event.last_push_to_non_root? &&
!event.rm_ref? &&
event.project &&
event.project.merge_requests_enabled
end
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