GitHub is a terrible upstream

jonathan bioinfornatics at gmail.com
Wed Jun 13 18:03:08 UTC 2012


Le mercredi 13 juin 2012 à 19:49 +0200, Pierre-Yves Chibon a écrit :
> On Wed, 2012-06-13 at 11:45 -0600, Pete Zaitcev wrote:
> > Suppose I cut a package last year:
> >  swift3-1.0.0-878c23.tag.xz
> > Then I build an RPM:
> >  openstack-swift-plugin-swift3-1.0.0-878c23-1.fc17.noarch.rpm
> > 
> > Today I run the same git-archve and get:
> >  swift3-1.0.0-5c74ba.tag.xz
> >  openstack-swift-plugin-swift3-1.0.0-5c74ba-1.fc18.noarch.rpm
> > 
> > Great, how do I update from the old one to the new one? 
> 
> That's why the guidelines are saying:
>   20110102snap
>   20110102git
>   20110102git9e88d7e
> using the date as well as the git hash
> http://fedoraproject.org/wiki/Packaging:NamingGuidelines#Release_Tag
> 
> Pierre

$ git log -r -1
.... log + date ....
$ git rev-parse --short HEAD // short hash to use
$ git checkout < short hash to use >
$ git archive --prefix=<name>-%%{alphatag}/ HEAD | xz > ../<name>-%
%{alphatag}.xz

where alphatag is <name><date>git<short hash>




More information about the devel mailing list