mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 21:00:29 +00:00
Use a simpler and more reliable command for converting from HEAD to
commit-ish. Funny thing, they have a command designed for this. ;] llvm-svn: 146325
This commit is contained in:
parent
c60e3e19b5
commit
bd5c23fee4
@ -50,7 +50,7 @@ function(add_version_info_from_vcs VERS)
|
||||
set(git_svn_rev "")
|
||||
endif()
|
||||
execute_process(COMMAND
|
||||
${git_executable} show-ref --abbrev --hash --head HEAD
|
||||
${git_executable} rev-parse --short HEAD
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
TIMEOUT 5
|
||||
RESULT_VARIABLE git_result
|
||||
|
Loading…
Reference in New Issue
Block a user