diff options
| author | John Keeping <[email protected]> | 2018-03-31 15:15:48 +0000 |
|---|---|---|
| committer | Jason A. Donenfeld <[email protected]> | 2018-06-27 16:11:19 +0000 |
| commit | c712d5ac434b9ee8cb4e63a173a2538e1878637f (patch) | |
| tree | 8b4f71d0fb9ef478409109fbf485532ae90660f0 /ui-plain.c | |
| parent | ui-refs: use shared function to print tag downloads (diff) | |
| download | cgit-c712d5ac434b9ee8cb4e63a173a2538e1878637f.tar.gz cgit-c712d5ac434b9ee8cb4e63a173a2538e1878637f.zip | |
snapshot: support archive signatures
Read signatures from the notes refs refs/notes/signatures/$FORMAT where
FORMAT is one of our archive formats ("tar", "tar.gz", ...). The note
is expected to simply contain the signature content to be returned when
the snapshot "${filename}.asc" is requested, so the signature for
cgit-1.1.tar.xz can be stored against the v1.1 tag with:
git notes --ref=refs/notes/signatures/tar.xz add -C "$(
gpg --output - --armor --detach-sign cgit-1.1.tar.xz |
git hash-object -w --stdin
)" v1.1
and then downloaded by simply appending ".asc" to the archive URL.
Signed-off-by: John Keeping <[email protected]>
Reviewed-by: Christian Hesse <[email protected]>
Diffstat (limited to 'ui-plain.c')
0 files changed, 0 insertions, 0 deletions
