Skip to content

Commit

Permalink
Merge pull request #468 from ferdnyc/rev-parsing
Browse files Browse the repository at this point in the history
CMake: Ensure git rev SHAs aren't abbreviated
  • Loading branch information
eumagga0x2a committed Dec 28, 2022
2 parents f9e7443 + 0d078fd commit 108a74b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/FindGitSvn.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ MACRO(admGetGitRevision _dir _rev)
MESSAGE(STATUS "Top dir is <${topdir}>")
#MESSAGE(STATUS "COMMAND ${GIT_EXECUTABLE} log --format=oneline -1 ${topdir}")
EXECUTE_PROCESS(
COMMAND echo log --format=oneline -1 ${topdir}
COMMAND echo log --format=oneline --no-abbrev -1 ${topdir}
COMMAND xargs ${GIT_EXECUTABLE}
COMMAND head -c 11
WORKING_DIRECTORY ${_dir}
Expand Down

0 comments on commit 108a74b

Please sign in to comment.