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.

Document the SSH requirement for LFS locking

ee29fa1b2997c6a801578b9f2820fb53e5baa74e · Keenan Nemetz · 13d ago · parent dc98c26d

Document the SSH requirement for LFS locking

The example cloned over HTTPS and then ran git lfs lock. git-lfs asks the
remote for the locking API, and Vole offers it only over SSH, so the lock
commands failed with a 404 on the document's own recommended clone.

Say which clone supports locking, and note that release archives include LFS
contents rather than pointers.

docs/lfs.md +13−4

@@ -18,15 +18,18 @@ git commit -m "Add the hero art"
18 18 git push origin main
19 19 ```
20 20
21 Clone through the repository's normal URL:
21 Clone through the repository's normal URL. Use HTTPS for an anonymous,
22 read-only checkout, or SSH if you will take file locks (see below):
22 23
23 24 ```sh
24 25 git clone https://forge.example.com/demo.git
26 git clone ssh://git@forge.example.com/demo.git
25 27 ```
26 28
27 LFS reads use the same HTTP service as anonymous Git reads. Writes authenticate
28 with the SSH key used for Git pushes; no separate token or storage server is
29 required.
29 LFS reads over an HTTPS clone use the same service as anonymous Git reads.
30 Writes authenticate with the SSH key used for Git pushes; no separate token or
31 storage server is required. An SSH clone carries both reads and writes over
32 the same key.
30 33
31 34 A repository can download only objects referenced by its own history. Knowing an
32 35 object hash does not grant access to another repository's file.
@@ -46,6 +49,7 @@ lfs_warn_bytes = 5242880
46 49 - A commit containing an LFS pointer whose object was not uploaded is refused so
47 50 the commit remains checkoutable.
48 51 - `lfs_warn_bytes = 0` disables the raw-binary warning.
52 - A release source archive contains the stored contents, not pointer files.
49 53
50 54 See [Set resource limits](configuration.md#set-resource-limits) for per-repository
51 55 storage quotas.
@@ -61,6 +65,11 @@ git lfs locks
61 65 git lfs unlock art/hero.psd
62 66 ```
63 67
68 The locking commands need an SSH remote. git-lfs asks the remote for the locking
69 API, and Vole offers it only over SSH, so a clone whose `origin` is HTTPS can
70 read and fetch but cannot take or list locks. Clone with the SSH URL above, or
71 point `origin` at it, when you will lock files.
72
64 73 While a lock exists, Vole rejects any push that changes that path. The server
65 74 enforces the rule even when a client has no hook installed. Current locks also
66 75 appear on `/<repo>/locks`.