#1107766 devscripts: uscan: gitmodules doesn't seem to work

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:
#1107766#5
Date:
2025-06-14 00:16:58 UTC
From:
To:
Dear Maintainer,
#1107766#10
Date:
2025-06-25 13:26:04 UTC
From:
To:
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

#1107766#15
Date:
2025-06-25 18:03:11 UTC
From:
To:
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

#1107766#20
Date:
2025-06-25 22:11:42 UTC
From:
To:
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?

#1107766#25
Date:
2025-06-28 09:27:18 UTC
From:
To:
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.

#1107766#30
Date:
2025-07-21 16:26:52 UTC
From:
To:
Hi,

could you retest with devscripts 2.25.16 (experimental) ? It should be fixed

#1107766#37
Date:
2025-08-27 12:43:17 UTC
From:
To:
Closing, fixed.

Thank you for the bug report.