##// END OF EJS Templates
git-lfs: always validate uploaded files size....
marcink -
r203:66843b1d stable
parent child Browse files
Show More
@@ -79,7 +79,12 b' class OidHandler(object):'
79 # verify if we have the OID before, if we do, reply with empty
79 # verify if we have the OID before, if we do, reply with empty
80 if store.has_oid():
80 if store.has_oid():
81 log.debug('LFS: store already has oid %s', store.oid)
81 log.debug('LFS: store already has oid %s', store.oid)
82 if skip_existing:
82
83 # validate size
84 size_match = store.size_oid() == self.obj_size
85 if not size_match:
86 log.warning('LFS: size mismatch for oid:%s', self.oid)
87 elif skip_existing:
83 log.debug('LFS: skipping further action as oid is existing')
88 log.debug('LFS: skipping further action as oid is existing')
84 return response, has_errors
89 return response, has_errors
85
90
General Comments 0
You need to be logged in to leave comments. Login now