Le 17/11/2018 à 19:19, Alexandre Viau a écrit :
> Package: devscripts
> Version: 2.18.9
> Severity: normal
> 
> When using uscan's git mode on a repository that has tags, uscan does
> not take into account the last tag when constructing the version number.
> 
> For example, if a repository has a v0.3.0 tag and commits were done
> after the tag, the last commit being done on 2018-10-25 and having the
> hash f80706d, the version should be:
>  - 0.3.0~git20181025.f80706d
> 
> However, uscan currently reports the following version:
>  - 0.0~git20181025.f80706d
> 
> My watch file is like so:
> ```
> version=4
> opts=mode=git, \
> https://github.com/collectd/go-collectd.git \
> HEAD
> ```
> 
> The specs for the git mode were originally discussed in #811565. It
> might be that this part of the spec was simply not implemented yet, so
> feel free to change the severity to wishlist.
> 
> Cheers,

Hello,

I'll take a look. For now, you can use "pretty":

version=4
opts="pretty=0.3.0~git%cd.%h,mode=git,pgpmode=none" \
 https://github.com/collectd/go-collectd.git \
 HEAD

Reply via email to