BigW Consortium Gitlab

Avoid cache building for super-weird case when repository root_ref is nil

parent f0116f13
......@@ -7,6 +7,9 @@ class ProjectCacheWorker
project = Project.find(project_id)
project.update_repository_size
project.update_commit_count
project.repository.build_cache
if project.repository.root_ref
project.repository.build_cache
end
end
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