From be4892097eb88c53ee53a41b9725fc5565d5ff22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20de=20Giessen?= Date: Mon, 29 Sep 2025 13:20:30 +0200 Subject: [PATCH] tools/autobuild: Use same length Git hash abbreviation in file names. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This makes the version string consistent with the one used in code, see commit 9e89c752cb. Signed-off-by: Daniƫl van de Giessen --- tools/autobuild/autobuild.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/autobuild/autobuild.sh b/tools/autobuild/autobuild.sh index c24c4b3a9a..9c94d887f0 100755 --- a/tools/autobuild/autobuild.sh +++ b/tools/autobuild/autobuild.sh @@ -61,7 +61,7 @@ make -C mpy-cross # where SEMVER is vX.Y.Z or vX.Y.Z-preview.N.gHASH or vX.Y.Z-preview.N.gHASH.dirty FW_DATE=$(date '+%Y%m%d') # same logic as makeversionhdr.py, convert git-describe output into semver-compatible -FW_GIT_TAG="$(git describe --tags --dirty --always --match 'v[1-9].*')" +FW_GIT_TAG="$(git describe --tags --dirty --always --match 'v[1-9].*' --abbrev=10)" FW_SEMVER_MAJOR_MINOR_PATCH="$(echo $FW_GIT_TAG | cut -d'-' -f1)" FW_SEMVER_PRERELEASE="$(echo $FW_GIT_TAG | cut -s -d'-' -f2-)" if [ -z "$FW_SEMVER_PRERELEASE" ]; then