diff options
Diffstat (limited to 'lib/gitlab/verify/batch_verifier.rb')
-rw-r--r-- | lib/gitlab/verify/batch_verifier.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/gitlab/verify/batch_verifier.rb b/lib/gitlab/verify/batch_verifier.rb index fd01602c256..d5327890d07 100644 --- a/lib/gitlab/verify/batch_verifier.rb +++ b/lib/gitlab/verify/batch_verifier.rb @@ -55,7 +55,7 @@ module Gitlab # We don't calculate checksum for remote objects, so just check existence def verify_remote(object) - raise 'Remote object does not exist' unless object.build_uploader.exists? + raise 'Remote object does not exist' unless remote_object_exists?(object) end # This should return an ActiveRecord::Relation suitable for calling #in_batches on @@ -77,6 +77,11 @@ module Gitlab def actual_checksum(_object) raise NotImplementedError.new end + + # Should return true if the remote object exists + def remote_object_exists?(object) + raise NotImplementedError.new + end end end end |