Skip to content

Commit be48920

Browse files
DvdGiessendpgeorge
authored andcommitted
tools/autobuild: Use same length Git hash abbreviation in file names.
This makes the version string consistent with the one used in code, see commit 9e89c75. Signed-off-by: Daniël van de Giessen <[email protected]>
1 parent 6f4fd6a commit be48920

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/autobuild/autobuild.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ make -C mpy-cross
6161
# where SEMVER is vX.Y.Z or vX.Y.Z-preview.N.gHASH or vX.Y.Z-preview.N.gHASH.dirty
6262
FW_DATE=$(date '+%Y%m%d')
6363
# same logic as makeversionhdr.py, convert git-describe output into semver-compatible
64-
FW_GIT_TAG="$(git describe --tags --dirty --always --match 'v[1-9].*')"
64+
FW_GIT_TAG="$(git describe --tags --dirty --always --match 'v[1-9].*' --abbrev=10)"
6565
FW_SEMVER_MAJOR_MINOR_PATCH="$(echo $FW_GIT_TAG | cut -d'-' -f1)"
6666
FW_SEMVER_PRERELEASE="$(echo $FW_GIT_TAG | cut -s -d'-' -f2-)"
6767
if [ -z "$FW_SEMVER_PRERELEASE" ]; then

0 commit comments

Comments
 (0)