Skip to content

Commit

Permalink
Off-by-one
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed Feb 11, 2025
1 parent 8eeada9 commit 21fdc91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/modules/VersionInfo.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 21fdc91

Please sign in to comment.