pkgver with git describe gives different hash length

Description:

Failed to build gcc with the same version. The git describe --tags in pkgver() returns different hash length.

Additional info:

  • package version(s): 14.2.1+r134+gab884fffe3fc-1

Steps to reproduce:

Add an interactive shell in prepare(), the git command I run gives 11 characters of hash. Resulting a different version for this package.

==> Starting prepare()...
[pluto@arch3 gcc]$ git describe --tags
releases/gcc-14.2.0-134-gab884fffe3f
[pluto@arch3 gcc]$ git describe --tags --abbrev=12
releases/gcc-14.2.0-134-gab884fffe3fc
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information