Hello Xiyue,

Thank you for the bug report and for testing uscan's gitmodules option.

On 14/06/2025 10:16 am, Xiyue Deng wrote:
I'm trying to use gitmodules in uscan which was introduced since
2.25.11[1], but it doesn't checkout the submodule when running uscan.

[snip]

I have updated debian/watch to use submodule following the uscan
manpage, which contains the following contents:

,----
| version=4
| opts="mode=git, gitmode=shallow, gitmodules, gitexport=all" \
|     https://github.com/karthink/gptel \
|     (?:.*?/)?@ANY_VERSION@ debian uupdate
`----

(I have created a branch to demonstrate this issue, and you can find the
debian/watch file at [2].)

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

Reply via email to