- Package:
- devscripts
- Source:
- devscripts
- Description:
- scripts to make the life of a Debian Package maintainer easier
- Submitter:
- Xiyue Deng
- Date:
- 2025-08-27 12:45:02 UTC
- Severity:
- normal
- Tags:
Dear Maintainer,
Hello Xiyue, Thank you for the bug report and for testing uscan's gitmodules option. [snip] Your regex is failing because of the 'optional' question mark after the non-capturing group. You'll probably find it easier to explicitly use 'refs/tags' as per the man page: refs/tags/v@ANY_VERSION@ debian uupdate Hope that helps. Hugh
Hi, I am also testing the gitmodules options (in fact I need it). I get a fatal error: uscan info: Downloading upstream package: Write.git master fatal: /usr/lib/git-core/git-submodule cannot be used without a working tree. uscan die: 1 at /usr/share/perl5/Devscripts/Uscan/Output.pm line 77. I am running it on an updated Sid schroot environment. Cheers, Jerome
Hi Hugh, Hugh McMaster <hmc@debian.org> writes: Thanks! Removing the optional regex mark (the question mark) fixes this. I wonder why uscan behaves this way given that this regex works for other use cases. I'm asking as I'm using this regex in many packages and it would be great make it just work. there a reason to still make it explicit?
I tested the regex pattern and it should be fine, with or without the optional mark. Strangely, I can't reproduce the problem now. I checked the pattern and it does include v and V now, so no need to include it.
Hi, could you retest with devscripts 2.25.16 (experimental) ? It should be fixed
Closing, fixed. Thank you for the bug report.