[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: importing in git the history of a Debian package


On Fri, Jul 25, 2014 at 03:24:38AM +0200, Marco d'Itri wrote:
> This script shows how to import in git the complete history of a Debian 
> package. It creates a structure of a properly merged upstream tree and 
> Debian changes.
> http://www.linux.it/~md/software/import-inn2.sh

> It may not be pretty and is slightly DWIM, but it worked for all of my 
> packages (some of them with very broken stuff in old releases and a mix
> of 1.0, 1.0+DBS, 1.0+quilt and 3.0) while everything else that I tried 
> has failed.

Really? I do this kind of thing with one line:

$ git-import-dscs --debsnap --pristine-tar inn2
gbp:info: Downloading snapshots of 'inn2' to '/tmp/tmp0jUnBM'...
gbp:info: No git repository found, creating one.
gbp:info: Tag upstream/ not found, importing Upstream tarball
pristine-tar: committed inn2_2.2.2.2000.01.31.orig.tar.gz.delta to branch pristine-tar
gbp:info: Version '' imported under 'inn2'
gbp:info: Version '' imported under 'inn2'

Looks like I got a full history.  Can you elaborate where it failed in your case.

Reply to: