summaryrefslogtreecommitdiff
path: root/lib/gitlab/satellite/merge_action.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/satellite/merge_action.rb')
-rw-r--r--lib/gitlab/satellite/merge_action.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab/satellite/merge_action.rb b/lib/gitlab/satellite/merge_action.rb
index f9bf286697e..52e8130956c 100644
--- a/lib/gitlab/satellite/merge_action.rb
+++ b/lib/gitlab/satellite/merge_action.rb
@@ -36,6 +36,7 @@ module Gitlab
if merge_request.remove_source_branch?
# will raise CommandFailed when push fails
merge_repo.git.push(default_options, :origin, ":#{merge_request.source_branch}")
+ merge_request.source_project.repository.expire_branch_names
end
# merge, push and branch removal successful
true