diff options
author | James Edwards-Jones <jedwardsjones@gitlab.com> | 2017-11-08 15:59:48 +0300 |
---|---|---|
committer | James Edwards-Jones <jedwardsjones@gitlab.com> | 2017-11-09 16:44:20 +0300 |
commit | ebd51744729cb1b68754f8ba4d7f9adcec28d58d (patch) | |
tree | ff5cc2755ec46060dc83316c484471a3c61cd9f8 /lib/gitlab/checks | |
parent | 78ea074f42543ef352d497f84dba69c6955d843f (diff) |
Handle forks in Gitlab::Checks::LfsIntegrity
Diffstat (limited to 'lib/gitlab/checks')
-rw-r--r-- | lib/gitlab/checks/lfs_integrity.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/gitlab/checks/lfs_integrity.rb b/lib/gitlab/checks/lfs_integrity.rb index 27a95764dc1..f7276a380dc 100644 --- a/lib/gitlab/checks/lfs_integrity.rb +++ b/lib/gitlab/checks/lfs_integrity.rb @@ -15,7 +15,10 @@ module Gitlab return false unless new_lfs_pointers.present? - existing_count = @project.lfs_objects.where(oid: new_lfs_pointers.map(&:lfs_oid)).count + existing_count = @project.lfs_storage_project + .lfs_objects + .where(oid: new_lfs_pointers.map(&:lfs_oid)) + .count existing_count != new_lfs_pointers.count end |