Hi Didier,

On Tue, Apr 03, 2018 at 08:52:06AM +0200, Didier 'OdyX' Raboud wrote:
> Le mardi, 7 novembre 2017, 10.00:01 h CEST Guido Günther a écrit :
> > Can you point me to a repo where I can reproduce this?
> 
> I just did that:
> 
>       git clone https://salsa.debian.org/printing-team/cups.git
>       cd cups
>       # Let the upstream/latest branch exist
>       git checkout upstream/latest
>       # Put debian/master to a commit that triggers the bug
>       git checkout debi       an/master
>       git reset --hard 7210eeb6f1d0d99cb008a4567127b7762a29f5a7
>       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/2.2.7-1']
> gbp:debug: ['git', 'rev-parse', '--quiet', '--verify', 'debian/2.2.7-1^0']
> gbp:info: Found tag for topmost changelog version 
> '46e03e2adff54390721b1a725ab9a6472e2cba39'
> gbp:debug: ['git', 'log', '--pretty=format:%H', 
> '46e03e2adff54390721b1a725ab9a6472e2cba39..HEAD', '--no-merges', '--']
> gbp:debug: ['git', 'merge-base', 'HEAD', 'upstream/latest']

This differs when I run this:

gbp:debug: ['git', 'merge-base', 'HEAD', 'upstream/latest']
gbp:debug: No upstream tag found: Failed to get common ancestor: fatal: Not a 
valid object name upstream/latest

and then works as expected.

> gbp:debug: ['git', 'describe', '--match', 'upstream/*', '--abbrev=0', 
> '18a1649286d8978552c6334934a23dc6efe5fc0d']
> gbp:debug: Found upstream version None.
> gbp:debug: /usr/bin/dpkg ['--compare-versions'] [None, 'lt', '2.2.7-1']
> 
> The temporary workaround is to run:
> $ git branch -d upstream/latest

I still can't reproduce this with 0.9.7.
Cheers,
 -- Guido

Reply via email to