storing objects in git-lfs is working

Still need to record the sha256 and size when they cannot be determined
by inspecting the key.
This commit is contained in:
Joey Hess 2019-08-02 13:56:55 -04:00
parent 6c1130a3bb
commit fc09a41ed1
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
3 changed files with 104 additions and 4 deletions

View file

@ -381,9 +381,12 @@ downloadOperationRequest = operationParamsRequest . download
-- | Builds http request to perform an upload. The content to upload is
-- provided in the RequestBody, along with its SHA256 and size.
--
-- If the LFS server requested verification, there will be a second
-- When the LFS server requested verification, there will be a second
-- Request that does that; it should be run only after the upload has
-- succeeded.
--
-- When the LFS server already contains the object, an empty list will be
-- returned.
uploadOperationRequests :: UploadOperation -> RequestBody -> SHA256 -> Integer -> Maybe [Request]
uploadOperationRequests op content oid size =
case (mkdlreq, mkverifyreq) of