Large files

A blob over the policy size (10 MB; set FORGE_LARGE_BLOB_BYTES to a whole number of bytes, 1024 or more; off stops the offload) is copied to the BlobStore after a push, under large/<owner>/<name>/<oid>. Git keeps its own copy, so a clone, a fetch and history are unchanged. The store is the bucket when S3_* is set, else a directory under the forge's data.

See them

Download one

/<owner>/<name>/large/<oid> (saved as the file's own name, else the oid) redirects to a presigned bucket address valid for 5 minutes, or streams the bytes when the store is a directory. Only an oid the store holds is served, and only to someone who can read the repository; anything else is a 404.

Not done

Handing a clone the blob from the store (packfile-uris or an HTTPS promisor remote) is not here: git has no setting for it that fits a repository served by upload-pack as is. Deleting a repository retracts its blobs from the store (after any offload still running has stopped). Renaming a repository or making it private does not: the blobs stay under the old name, and the page and download still check who may read.

Code: src/blob/large.ts, src/web/pages/large_files.ts.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs