#1111305 git-debpush should check and/or push upstream tag

Package:
git-debpush
Source:
git-debpush
Submitter:
Ian Jackson
Date:
2025-08-22 09:09:01 UTC
Severity:
normal
Tags:
#1111305#5
Date:
2025-08-16 16:13:32 UTC
From:
To:
If the upstream tag is not present on salsa, but is present locally,
git-debpush currently sends the signed tag2upload tag to the service,
which then fails because it can't find the upstream tag.

I think git-debpush could spot this.

Maybe it should always push the upstream tag if it's present locally
but not on the remote.  It should certainly at least fail a check
in this situation.

Ian.

(Sean: feel free to take off the newcomer tag if you think this is too
fiddly.  I think it should be fine given we'll be around to help.)

#1111305#12
Date:
2025-08-16 18:24:26 UTC
From:
To:
Hello,

I actually thought it already pushed the upstream tag in this case.
So, I agree, and I'd suggest pushing it rather than failing a check.

Should be okay with our help, yeah.

#1111305#17
Date:
2025-08-18 10:48:16 UTC
From:
To:
Hello,

Fixing this is blocked on working around [1].  We can work around that
sufficient for this bug by doing separate pushes for each tag.

[1]  https://gitlab.com/gitlab-org/gitlab/-/issues/562101

#1111305#22
Date:
2025-08-18 18:39:50 UTC
From:
To:
#1111305#27
Date:
2025-08-21 21:54:13 UTC
From:
To:
Ian Jackson writes ("Re: [tag2upload 529] failed, cage 0.2.0+20250816-1"):

Hi again.  I realise this was a week ago now, but:

I filed #1111305, thinking that it git-debpush had erroneously failed
to push the debian/ tag.  But now that I look at the code it seems to
do the thing I was accusing it of not doing.  I wrote a test case and
it passes:
https://salsa.debian.org/dgit-team/dgit/-/merge_requests/303

Is it possible that you used git-debpush --tag-only, and then manually
pushed the debian/ tag ?

Regards,
Ian.

#1111305#32
Date:
2025-08-22 05:06:47 UTC
From:
To:
Hi,

Yes! Sorry, I should have mentioned that earlier, I did not realize
git-debpush does additional/different checks when pushing.

cheers,
Birger

#1111305#37
Date:
2025-08-22 08:08:08 UTC
From:
To:
Birger Schacht writes ("Bug#1111305: [tag2upload 529] failed, cage 0.2.0+20250816-1"):

Right, if you say --tag-only it doesn't fetch or push anything.

Thanks for confirming.

Ian.

#1111305#38
Date:
2025-08-22 09:06:57 UTC
From:
To:
Hello,

I think that means there is no bug here, so I'm going ahead and closing.