Hi,
On Thu, Oct 26, 2017 at 08:36:32AM +0200, Guido Günther wrote:
> Hi,
> On Sun, Oct 22, 2017 at 11:52:25AM +0200, Didier 'OdyX' Raboud wrote:
> > Package: git-buildpackage
> > Version: 0.9.0
> > Severity: normal
> > File: gbp-dch
> > 
> > On multiple of my repositories, `gbp dch` fails with the following error:
> > 
> > (That's on https://anonscm.debian.org/cgit/pkg-games/planetblupi.git )
> > 
> > $ gbp dch --release --verbose
> > gbp:debug: ['git', 'rev-parse', '--show-cdup']
> > gbp:debug: ['git', 'rev-parse', '--is-bare-repository']
> > gbp:debug: ['git', 'rev-parse', '--git-dir']
> > gbp:debug: ['git', 'symbolic-ref', 'HEAD']
> > gbp:debug: ['git', 'show-ref', 'refs/heads/debian/master']
> > gbp:debug: ['git', 'tag', '-l', 'debian/1.11.0-1']
> > gbp:debug: ['git', 'rev-parse', '--quiet', '--verify', 'debian/1.11.0-1^0']
> > gbp:debug: ['git', 'log', '--pretty=format:%H', 
> > 'a1f72589d8e0285b65438bb924197a3dd5a93bb2..HEAD', '--no-merges', '--']
> > gbp:debug: ['git', 'merge-base', 'HEAD', 'upstream/latest']
> > gbp:debug: ['git', 'describe', '--match', 'upstream/*', '--abbrev=0', 
> > 'e0ace8819512553d3680e912e419a5df1b8295ab']
> > gbp:debug: Found upstream version None.
> > gbp:debug: /usr/bin/dpkg ['--compare-versions'] [None, 'lt', '1.11.0-1']
>                                                    ^^^^
> That's the problem and it results from the code around the above 'git
> describe' somehow returning None. From looking at the code and trying
> various things I can't reproduce this. Can you tell me where your HEAD was
> at when invoking the command?
> 
> git tag upstream/1.11.0 `git rev-parse v1.11.0`
> git tag -d upstream/1.11.0
> gbp dch -R
> 
> didn't do the trick. Any idea what I could be missing?

Can you point me to a repo where I can reproduce this?

Cheers,
 -- Guido

Reply via email to