mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-24 03:56:05 +10:00
Check if repo exists before attempting to update cache info
Closes #14361
This commit is contained in:
@@ -5,6 +5,9 @@ class ProjectCacheWorker
|
||||
|
||||
def perform(project_id)
|
||||
project = Project.find(project_id)
|
||||
|
||||
return unless project.repository.exists?
|
||||
|
||||
project.update_repository_size
|
||||
project.update_commit_count
|
||||
|
||||
|
||||
Reference in New Issue
Block a user