Control: found -1 2.25.5
Control: tags -1 + confirmed
Control: retitle -1 uscan: support --download-version in git HEAD mode
Hi,
The reported issue can still be reproduced with the current version of
devscripts (2.25.5):
```
$ git clone https://salsa.debian.org/js-team/node-formidable.git
$ cd node-formidable
$ git checkout debian/1.2.1+20200129git8231ea6-1
$ cat debian/watch
version=4
opts="mode=git, gitmode=full, pgpmode=none, pretty=1.2.1+%cdgit%h" \
https://github.com/node-formidable/formidable.git \
HEAD debian uupdate
$ uscan --download-version 1.2.1+20200129git8231ea6
Newest version of node-formidable on remote site is
1.2.1+20241021git152e940, specified download version is
1.2.1+20200129git8231ea6
Successfully symlinked
../node-formidable-1.2.1+20241021git152e940.tar.xz to
../node-formidable_1.2.1+20241021git152e940.orig.tar.xz.
uupdate: debian/source/format is "3.0 (quilt)".
uupdate: Auto-generating
node-formidable_1.2.1+20200129git8231ea6-1.debian.tar.xz
uupdate: -> Copy to
node-formidable_1.2.1+20241021git152e940-1.debian.tar.xz
```
Implementing this can technically be done: it requires some additional
logic in git.pm/git_search to match the requested version against an
exhaustive git log and save the corresponding commit hash to check it
out.
Best regards,
--
Julien Plissonneau Duquène