Commit 90cecd89 authored by Alejandro Rodríguez's avatar Alejandro Rodríguez

Fix Repository#head_exists? use after CE Upstream merge

parent 6f314246
......@@ -10,7 +10,7 @@ class ElasticCommitIndexerWorker
project = Project.find(project_id)
repository = project.repository
return true unless repository.head_exists?
return true unless repository.exists?
indexer = Gitlab::Elastic::Indexer.new
indexer.run(
......
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