Hi. Thanks for the report.
Marco d'Itri writes ("Bug#1115739: fatal: --mirror can't be combined with
refspecs"):
> In my .git/config:
>
> [remote "salsa"]
> url = [email protected]:md/tin.git
> mirror = true
>
> Manually pushing the tag worked.
We could have git-debpush detect `mirror = true` and fail a check.
Simply overriding it seems hazardous.
But I have questions about your expectations?
Where do you publish your branch?
Implicitly, for us, that means where did you want git-debpush to push
the *branch* (as opposed to the tag). It wants to push the branch as
well as the tag, because not doing so can create a very confusing
situation where the relevant git objects are only publicly available
as a tag or on dgit-repos. That sets future uploaders up to fail.
Or to put it another way, what's the principal git for this package?
> I wonder how much code could be removed by having git-debpush just
> create the tag and then pushing it manually as before.
You're welcome to use --tag-only of course, but I think most users
will appreciate the convenience. This also allows git-debpush to help
the user avoid a lot of possible mistakes. (Like the one I mention
above.)
Ian.
--
Ian Jackson <[email protected]> These opinions are my own.
Pronouns: they/he. If I emailed you from @fyvzl.net or @evade.org.uk,
that is a private address which bypasses my fierce spamfilter.