From 21fdc911ea567f8b77dda3cbbcd2e3524d090bbe Mon Sep 17 00:00:00 2001 From: Tres Finocchiaro Date: Tue, 11 Feb 2025 00:53:34 -0500 Subject: [PATCH] Off-by-one --- cmake/modules/VersionInfo.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/modules/VersionInfo.cmake b/cmake/modules/VersionInfo.cmake index 08f4a82afc3..18ed0db9f91 100644 --- a/cmake/modules/VersionInfo.cmake +++ b/cmake/modules/VersionInfo.cmake @@ -18,7 +18,7 @@ IF(GIT_FOUND AND NOT FORCE_VERSION) OUTPUT_STRIP_TRAILING_WHITESPACE) # If successful, use the first 7 characters to mimic github's hash style if(COMMIT_HASH) - string(SUBSTRING "${COMMIT_HASH}" 7 7 COMMIT_HASH) + string(SUBSTRING "${COMMIT_HASH}" 6 7 COMMIT_HASH) endif() endif()