#1124775 git-debpush: take upstream from last tag for -2 upload

#1124775#5
Date:
2026-01-06 15:20:06 UTC
From:
To:
Hello,

For sbcl I always have to pass an --upstream option because the tags use
a naming scheme that git-deborig's algorithm doesn't detect.  It feels
strange to have to do this for a -2 upload, though.

If the -1 upload was done with tag2upload, maybe git-debpush could fish
the upstream information out of its tag, along with the quilt mode.

This might be good in addition to #1105759, the main solution for
packages like this.

#1124775#10
Date:
2026-08-23 17:21:54 UTC
From:
To:
Hi,

I also ran into this today when uploading a -2 version: git-debpush
started to ask about the upstream tag and didn't automatically detect
it based on what the -1 tag poitns to nor did it use the
git-buildpackage default (`upstream/%s`) as discussed in Bug#1105759:

± git-debpush --gbp
git-debpush: found upstream tags: v1.4.5 upstream/1.4.5
git-debpush: use --upstream=TAG to say which one to use

I solved this by telling it manually to use `upstream/%s`:

± git-debpush --gbp --upstream=upstream/1.4.5
git-debpush: checking state at git@salsa.debian.org:games-team/libbncsutil.git
git-debpush: making signed tag debian/1.4.5-2
git-debpush: pushing to git remote origin

It would of course be nice if it was automatic.