Commit 67654a44 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

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

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
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