GitHub is a terrible upstream

Orion Poplawski orion at
Thu May 24 21:05:10 UTC 2012

On 04/23/2012 11:21 AM, Patrick Monnerat wrote:
> On Mon, 2012-04-23 at 14:27 +0100, Adam Williamson wrote:
>> On Fri, 2012-04-20 at 20:51 -0700, Eric Smith wrote:
>>> Corey Richardson wrote:
>>>> Getting source tarballs from github is a nightmare. See
> I noticed putting what you want after .../tarball/XXXX has no effect,
> thus I have good results by using URLs like:
> where user and app identify the repository target and gittag is the hex
> code of the desired commit. This satisfies rpmbuild and the URL is
> valid.
> The downloaded tar contains everything under directory user-app-gittag.
> Of course, this works as long as the target data (i.e.: repository)
> lives on github :-/
> Patrick

It wasn't obvious at first to me but this works with tags not just commit 
hashes.  So if a project tags there version numbers you can do something like:

The contents are still in a directory named user-app-hash

Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA, Boulder Office                  FAX: 303-415-9702
3380 Mitchell Lane                       orion at
Boulder, CO 80301         
devel mailing list
devel at

More information about the devel mailing list