1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-16 19:14:06 +02:00

* Use the same unique revision identifier as git itself.

This commit is contained in:
Christian Muehlhaeuser
2011-07-20 06:56:31 +02:00
parent 8d06d2ca38
commit 0a5f9ba290

View File

@@ -5,7 +5,7 @@ if(EXISTS ${CMAKE_SOURCE_DIR}/.git/HEAD)
mark_as_advanced(GIT_EXECUTABLE)
if(GIT_EXECUTABLE)
execute_process(
COMMAND ${GIT_EXECUTABLE} rev-parse --verify -q --short=6 HEAD
COMMAND ${GIT_EXECUTABLE} rev-parse --verify -q --short=7 HEAD
OUTPUT_VARIABLE head
OUTPUT_STRIP_TRAILING_WHITESPACE
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}