On Mon, 17 Nov 2025 10:54:17 +0000 Simon McVittie wrote:
>
> On Sat, 15 Nov 2025 at 23:16:28 +1100, Hugh McMaster wrote:
> >I see you are using the new git upstream repository mode introduced in
> >2.25.23. This mode operates on cloned repositories and only fetches
> >new commits.
>
> If I'm understanding correctly, there is no way to disable use of this
> new mode while running in a git working directory?
The code path previously existed only for tagged repositories. Expanding
support to 'versionless' repositories was only done very recently.
There is no way to disable the mode. Why would you want to do that?
> Here is a reproducer in a predictable environment (with ioquake3, but it
> would probably work with any source package that has Repository in its
> debian/upstream/metadata and uses Matching-Pattern: HEAD).
>
> [snip]
>
> ef39fab1 is not an upstream version - instead, it is the latest commit
Thank you for the instructions. I've never used podman until now, but
it's fast and practical.
The problem is that the upstream remote name is not being passed to `git
log` or `git describe`, so the default branch is being used instead.
I've got a draft patch on Salsa [1]. It needs a bit more testing, as
`git archive` might need the branch name too.
Hugh
[1] https://salsa.debian.org/debian/devscripts/-/merge_requests/594