#1145569 uscan: length of short git ref depends on repository context

Package:
devscripts
Source:
devscripts
Description:
scripts to make the life of a Debian Package maintainer easier
Submitter:
Simon Richter
Date:
2026-08-25 16:13:02 UTC
Severity:
normal
#1145569#5
Date:
2026-08-25 16:11:58 UTC
From:
To:
Hi,

minor because it's not much of an actual problem, just a curiosity.

The watch file in the prjxray package currently generates the version
number

    0.1+git3356.gc9f02d85+~db20211214.g0a0adde

when run standalone, so that is the version number seen in DDPO.

When run from a checkout of the package, with remotes configured for all of
upstream packages (so these can be reused by uscan, instead of requiring a
fresh clone), instead I get

    0.1+git3356.gc9f02d85+~db20211214.g0a0added

because now the short references are one character longer.

That is only slightly annoying, as DDPO claims the package is ahead of
upstream and Audit finds that the package does not match what it would
generate, but it has not real implications -- any update would be reflected
in the commit count/date instead of the reference.

It might become more of a problem if the reference of the first component
changed in length, because that might actually affect sort order.

   Simon

- -- Package-specific info:

- --- /etc/devscripts.conf ---
Empty.

- --- ~/.devscripts ---
Not present

- -- System Information:
Debian Release: 13.6
  APT prefers stable-security
  APT policy: (990, 'stable-security'), (990, 'stable'), (500, 'stable-debug')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, riscv64

Kernel: Linux 7.1.8+deb13-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages devscripts depends on:
ii  dpkg-dev                 1.22.22
ii  file                     1:5.46-5
ii  gpg                      2.4.7-21+deb13u1+b4
ii  gpg-agent                2.4.7-21+deb13u1+b4
ii  gpgv                     2.4.7-21+deb13u1+b4
ii  libconfig-inifiles-perl  3.000003-3+deb13u1
ii  libdpkg-perl             1.22.22
ii  libfile-dirlist-perl     0.05-3
ii  libfile-homedir-perl     1.006-2
ii  libfile-touch-perl       0.12-2
ii  libio-string-perl        1.08-4
ii  libmoo-perl              2.005005-1
ii  libwww-perl              6.78-1
ii  libyaml-libyaml-perl     0.903.0+ds-1
ii  patchutils               0.4.2-1
ii  perl                     5.40.1-6
ii  python3                  3.13.5-1
ii  sensible-utils           0.0.25
ii  wdiff                    1.2.2-9

Versions of packages devscripts recommends:
ii  apt                         3.0.3
ii  curl                        8.14.1-2+deb13u4
ii  dctrl-tools                 2.24-3+b1
ii  debian-keyring              2025.07.26
ii  debian-tag2upload-keyring   1.1
ii  diffstat                    1.67-1
ii  dput-ng [dput]              1.44
ii  equivs                      2.3.2
ii  git-debpush                 16.7~bpo13+1
ii  libdistro-info-perl         1.13
ii  libencode-locale-perl       1.05-3
ii  libgitlab-api-v4-perl       0.27-1
ii  libjson-perl                4.10000-1
ii  liblwp-protocol-https-perl  6.14-1
ii  libmetacpan-client-perl     2.033000-1
ii  libsoap-lite-perl           1.27-3
ii  libstring-shellquote-perl   1.04-3
ii  liburi-perl                 5.30-1
ii  licensecheck                3.3.9-1
ii  lintian                     2.122.0
ii  lzip                        1.25-3
ii  man-db                      2.13.1-1
ii  mmdebstrap                  1.5.7-1+deb13u1
ii  patch                       2.8-2
ii  pristine-tar                1.50+nmu2
ii  python3-apt                 3.0.0
ii  python3-debian              1.0.1
ii  python3-magic               2:0.4.27-3
ii  python3-requests            2.32.3+dfsg-5+deb13u1
ii  python3-unidiff             0.7.5-2
ii  python3-xdg                 0.28-2
ii  sbuild                      0.89.3+deb13u4
ii  strace                      6.13+ds-1
ii  unzip                       6.0-29+deb13u1
ii  wget                        1.25.0-2
ii  xz-utils                    5.8.1-1+deb13u1

Versions of packages devscripts suggests:
pn  adequate                          <none>
ii  at                                3.2.5-2.2
ii  autopkgtest                       5.49
pn  bls-standalone                    <none>
pn  bsd-mailx | mailx                 <none>
ii  build-essential                   12.12
pn  check-all-the-things              <none>
ii  debhelper                         13.24.2
pn  diffoscope                        <none>
pn  disorderfs                        <none>
ii  docker.io                         26.1.5+dfsg1-9+deb13u1
pn  dose-extra                        <none>
pn  duck                              <none>
pn  elpa-devscripts                   <none>
pn  faketime                          <none>
ii  gnuplot-qt [gnuplot]              6.0.2+dfsg1-1
pn  how-can-i-help                    <none>
ii  libauthen-sasl-perl               2.1700-1
pn  libdbd-pg-perl                    <none>
pn  libterm-size-perl                 <none>
ii  libtimedate-perl                  2.3300-2
ii  msmtp-mta [mail-transport-agent]  1.8.28-3
ii  mutt                              2.2.13-1+deb13u1
ii  openssh-client [ssh-client]       1:10.0p1-7+deb13u4
pn  piuparts                          <none>
pn  postgresql-client                 <none>
pn  pristine-lfs                      <none>
ii  python3-debianbts                 4.1.1
ii  python3-pycurl                    7.45.6-1
ii  quilt                             0.68-1
pn  ratt                              <none>
pn  reprotest                         <none>
pn  svn-buildpackage                  <none>
ii  w3m                               0.5.3+git20230121-2.1

- -- no debconf information
-----BEGIN PGP SIGNATURE-----

iQFDBAEBCgAtFiEEtjuqOJSXmNjSiX3Tfr04e7CZCBEFAmqNvs4PHHNqckBkZWJp
YW4ub3JnAAoJEH69OHuwmQgRLakH/1qYd180LuN7h5e0V6BRMYWHn6O9859EpW7C
SsBcbJvr+fUF68biyyN4OHPTCrEm7i+uMY6ROjk3+tr76ZQw7AilZbSlOoVTZ+Pw
rcxkcuzpbWMOYTbHZ2JVfr4Ee6FNfr5iNrsRcRh/Jk+y7L4qEIvW5kUKQsE4EUMm
zgg1FOKFbjpBf8gpCh+CwSe5BJKTJwF0dcuJNo9iH9gGwW8zlQCoF3aOt8HqJEtj
vOwW+gvbc0vC/tVvs28Z+snQCBho6b0G53kPc1CqK+RBoXAXB56qQU5NIr4PwD2e
sLk7tr2xj5ciD6jnKLChg+Zdb9tloaiHIFOkOqfo5jpHgXV6Hh4=
=KuFn
-----END PGP SIGNATURE-----