Commit a4ae4694a2de17e18f1f68a99f8765c61c09dd19
1 parent
19d0dc3c
Exists in
master
and in
4 other branches
Fix issue #987 #972
Showing
1 changed file
with
5 additions
and
2 deletions
Show diff stats
app/helpers/application_helper.rb
@@ -90,7 +90,10 @@ module ApplicationHelper | @@ -90,7 +90,10 @@ module ApplicationHelper | ||
90 | end | 90 | end |
91 | 91 | ||
92 | def show_last_push_widget?(event) | 92 | def show_last_push_widget?(event) |
93 | - event && event.last_push_to_non_root? && | ||
94 | - event.project && event.project.merge_requests_enabled | 93 | + event && |
94 | + event.last_push_to_non_root? && | ||
95 | + !event.rm_ref? && | ||
96 | + event.project && | ||
97 | + event.project.merge_requests_enabled | ||
95 | end | 98 | end |
96 | end | 99 | end |