diff options
Diffstat (limited to 'app/models/concerns/has_repository.rb')
-rw-r--r-- | app/models/concerns/has_repository.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/concerns/has_repository.rb b/app/models/concerns/has_repository.rb index d614d6c4584..0e7381882b5 100644 --- a/app/models/concerns/has_repository.rb +++ b/app/models/concerns/has_repository.rb @@ -119,6 +119,9 @@ module HasRepository def after_repository_change_head reload_default_branch + + Gitlab::EventStore.publish( + Repositories::DefaultBranchChangedEvent.new(data: { container_id: id, container_type: self.class.name })) end def after_change_head_branch_does_not_exist(branch) |