git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Gitweb: Persistant download URLs for snapshots?

From
TSTimo Sigurdsson <public_timo.s@silentcreek.de>
Date
May 30, 2016, 14:12 UTC
Message-ID
<20160530141253.AB7586C80ABB@dd34104.kasserver.com>
Hi,
I hope this is the right place to ask this, but I wanted to know whether it is possible to have a persistant URL to obtain a snapshot of the latest master of a repository through Gitweb.
I set up a gitweb instance and it works nicely. I can click on the snapshot link to get a tgz archive of a specific commit hash to quickly receive or distribute files of a repository exposed by Gitweb. However, I have two problems with these links:
1) The link seems to depend on a commit hash. I haven't found a shorter or persitant link that would e.g. always give me the latest master snapshot.
2) Another issue which is actually more problematic: The links only seem to work interactively in my desktop browser. If I right click the link "snapshot", copy the URL and then try to download that link from another (headless) machine using wget, I end up getting a html file instead of a tgz archive.
Is it possible to generate such links that conssitantly work for the latest commit of a repository and that work non-interactively from a command line? Am I doing something wrong (well aside fromt he possibility that I'm trying to use gitweb for something which it might not have been designed for...)?
Thank you!
Kind regards,
Timo
Message 1 of 1 in “Gitweb: Persistant download URLs for snapshots?”
  1. Timo SigurdssonMay 30, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.