diff options
author | zeripath <art27@cantab.net> | 2021-04-03 17:19:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-03 18:19:59 +0200 |
commit | 0bb8bd8190a7c3ec84b934642607e24058145b9e (patch) | |
tree | a26069b2548e053ef91f384697f8ff9cfb11a1c2 /modules/lfs | |
parent | 3cc7d27b6f23628e1ecc9ac1e5f61728be73da76 (diff) | |
download | gitea-0bb8bd8190a7c3ec84b934642607e24058145b9e.tar.gz gitea-0bb8bd8190a7c3ec84b934642607e24058145b9e.zip |
Add size to Save function (#15264)
Fix #15253
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'modules/lfs')
-rw-r--r-- | modules/lfs/content_store.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/lfs/content_store.go b/modules/lfs/content_store.go index 9473cc35c2..b4f2bb6044 100644 --- a/modules/lfs/content_store.go +++ b/modules/lfs/content_store.go @@ -82,7 +82,7 @@ func (s *ContentStore) Put(meta *models.LFSMetaObject, r io.Reader) error { // now pass the wrapped reader to Save - if there is a size mismatch or hash mismatch then // the errors returned by the newHashingReader should percolate up to here - written, err := s.Save(p, wrappedRd) + written, err := s.Save(p, wrappedRd, meta.Size) if err != nil { log.Error("Whilst putting LFS OID[%s]: Failed to copy to tmpPath: %s Error: %v", meta.Oid, p, err) return err |