Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Site
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software/vole.git

Self-hosted forge that lives in your Git repo.

Resolve LFS pointers in release source archives

dc98c26d4eb07402ddd65b6c05aa70429ce618b3 · Keenan Nemetz · 13d ago · parent 617cda58

Resolve LFS pointers in release source archives

A release tarball is generated by git archive from the bare server repository,
which has no filter.lfs.smudge. Pointer blobs were copied verbatim, so a source
archive of a game project held 130-byte pointers where textures and levels
should be.

ArchiveResolvingLFS streams git's uncompressed tar through a rewrite: a small
regular file that parses as a pointer is replaced by the object from the
repository's LFS namespace, and tar.gz is compressed in process so every entry
is visible. Non-pointer files stream through, including files larger than the
pointer cap that begin with the same version line. A missing object fails the
archive rather than shipping the pointer silently.

The release page says the contents are included, and the archive ETag gains a
version suffix so a cached pointer tarball is revalidated after the change.

server/web/templates/releases.html +2−3

@@ -143,9 +143,8 @@ Point the channel at another release to edit this one.</p>
143 143 <h2>Source</h2>
144 144 <p><a href="/{{.Name}}/releases/{{esc .Tag.Name}}/archive.tar">Download .tar</a>
145 145 · <a href="/{{.Name}}/releases/{{esc .Tag.Name}}/archive.tar.gz">Download .tar.gz</a></p>
146 {{if .LFSPointers}}<p class="muted">This repository tracks files with Git LFS: those files appear
147 in the tarball as pointer files, not their contents. Clone with <code>git lfs</code> for the
148 real bytes.</p>{{end}}
146 {{if .UsesLFS}}<p class="muted">Files tracked with Git LFS are included as their
147 contents, not as pointer files.</p>{{end}}
149 148 </div>
150 149
151 150 {{template "footer" .}}