From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 17808 invoked from network); 27 Aug 2020 11:52:11 -0000 Received: from krantz.zx2c4.com (192.95.5.69) by inbox.vuxu.org with ESMTPUTF8; 27 Aug 2020 11:52:11 -0000 Received: by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 401f8e58; Thu, 27 Aug 2020 11:24:48 +0000 (UTC) Return-Path: Received: from mail.matejamaric.com (mail.matejamaric.com [2a04:3542:1000:910:e44b:bdff:feb6:7332]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTPS id e97dfd7b (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Thu, 27 Aug 2020 11:24:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=matejamaric.com; s=selector1; t=1598529123; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zgEVHv1mlNOLOgzxOj1WhJnndRgwBtxve8J78fgPNzU=; b=Z9NMlPINPSymmuXk6z7Y5vZclmlMgrwe8XlxhBGPa90/YJWokHvZaWdsQr7GvTpfWoDq7b m48RtSkNMOXjxgUOHjMNv4lOxfYGMTq0eRmbrueaD36lMJTcDUZJxTPCeqZWrBV3q1sU7F CBVJFbkYk+zNHiikL/1yVSRMuPbawYswF6nd5hJhye+MIOMQV/vq6qC5ZiixfIUcoW/Qnt LyefTJJYamx8xbrGsYihStbtnlf11/lHfMEXo3AO5ilv7gnxliOoA6nNUc4S9u3E2EB3h9 dejY+QO8JbG3kChXdNGDyEmeCmxxL91gfNMJfKi08V0ESewGKYeY1YsW31ox+J/6BzLQ6E NQdX8Y6AiPDTRInEh3uC0RfrgYeoU+XPnESPglDTDf+I4mG1Tai6EEECwBzmIWbIrAQyK1 RNYm3eGve9BWseaNUmuz1LK6oCPbhgpRYUDVAsXB/3TVXgfJywScSUS/kEJL0lgc9DeACH +b6ZsrvtgRIciVtokzKK05mzfE5SU+JVlPKU4xE88YrJQa9vv/qql2L7oiYFlZlUhfY6Xz rrW6/zgtynpIC8jPPBp+RJ2l1aF3P43dPA9e1nrfT77zvL0DmzfXbGjzQKSLtxh5SqcYvT 583KLiLegD3lWn/iS85SkQdiHvQWENvLwXCC6S8lymg71mKOBQ7mw= Received: from [192.168.0.5] ( [87.116.163.242]) by mail.matejamaric.com (OpenSMTPD) with ESMTPSA id d0ae61a3 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Thu, 27 Aug 2020 11:52:03 +0000 (UTC) Subject: Re: Download links for HEAD? To: Martin Burnicki Cc: cgit@lists.zx2c4.com References: <0ed398ac-729d-6131-a4ab-2ae0f440aa0b@meinberg.de> <4c1a6968-fc38-491e-bb94-2e112a90986b@matejamaric.com> <225828ae-67ed-f818-d7e0-c6ed805a4df5@meinberg.de> From: Mateja Maric Message-ID: <737c21f8-fb28-c041-fd3d-8e5964c21582@matejamaric.com> Date: Thu, 27 Aug 2020 13:51:39 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Icedove/68.9.0 MIME-Version: 1.0 In-Reply-To: <225828ae-67ed-f818-d7e0-c6ed805a4df5@meinberg.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: cgit@lists.zx2c4.com X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: List for cgit developers and users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: cgit-bounces@lists.zx2c4.com Sender: "CGit" 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 : >> >>> 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@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 >>> >