Download links for HEAD?

Mateja Maric mail at matejamaric.com
Thu Aug 27 13:51:39 CEST 2020


You also have download links at your commit page 
(https://git.meinbergglobal.com/example-code/gpsxmple.git/commit/):

https://git.meinbergglobal.com/example-code/gpsxmple.git/snapshot/gpsxmple-master.zip

https://git.meinbergglobal.com/example-code/gpsxmple.git/snapshot/gpsxmple-master.tar.gz


On 8/27/20 1:23 PM, Martin Burnicki wrote:
> Mateja Maric wrote:
>> Checkout "snapshots" option in cgitrc manpage. You can have both .zip and .tar.gz. archives.
> My cgitrc file already has a line
>
> snapshots=tar.gz zip
>
> and in fact, download links are available at the project page:
> https://git.meinbergglobal.com/example-code/gpsxmple.git/
>
> However, download links are ONLY available for versions that have a tag
> assigned. My question was if it was possible to have a download link
> e.g. for the current HEAD revision, even if NO tag has been assigned.
>
> Martin
>
>
>> 27 Aug 2020 12:44:50 Martin Burnicki <martin.burnicki at meinberg.de>:
>>
>>> Hi,
>>>
>>> I've recently started to use cgit, and there are a few projects on our
>>> web page:
>>> https://git.meinbergglobal.com/
>>>
>>> Beside the possibility that users can clone the repos, I'd appreciate if
>>> there was an easy way to download e.g. the current HEAD (or a specific
>>> version ) as .zip or .tar.gz file, even if a version has no tag.
>>>
>>> This would make it much easier for users that aren't familiar with git
>>> to download the latest code.
>>>
>>> For example, in this repo
>>> https://git.meinbergglobal.com/example-code/gpsxmple.git/
>>>
>>> I've explicitly assigned a tag 'gpsxmple-current' to the latest commit
>>> to make sure download links are listed. But of course, after a future
>>> commit the tag had to be deleted and assign to the new commit.
>>>
>>> Is it not possible to download current HEAD as archive, or am I missing
>>> something?
>>>
>>> Thanks for any suggestions,
>>>
>>> Martin
>>> -- 
>>> Martin Burnicki
>>>
>>> Senior Software Engineer
>>>
>>> MEINBERG Funkuhren GmbH & Co. KG
>>> Email: martin.burnicki at meinberg.de
>>> Phone: +49 5281 9309-414
>>> Linkedin: https://www.linkedin.com/in/martinburnicki/
>>>
>>> Lange Wand 9, 31812 Bad Pyrmont, Germany
>>> Amtsgericht Hannover 17HRA 100322
>>> Geschäftsführer/Managing Directors: Günter Meinberg, Werner Meinberg,
>>> Andre Hartmann, Heiko Gerstung
>>> Websites: https://www.meinberg.de  https://www.meinbergglobal.com
>>> Training: https://www.meinberg.academy
>>>
>


More information about the CGit mailing list