Commit fa793dd9 authored by Valery Sizov's avatar Valery Sizov

ES: incremental indexing of repository

parent 672055f0
......@@ -61,6 +61,12 @@ class GitPushService
EventCreateService.new.push(project, user, @push_data)
project.execute_hooks(@push_data.dup, :push_hooks)
project.execute_services(@push_data.dup, :push_hooks)
if Gitlab.config.elasticsearch.enabled
project.repository.index_commits
project.repository.index_blobs
end
CreateCommitBuildsService.new.execute(project, @user, @push_data)
ProjectCacheWorker.perform_async(project.id)
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