[llvm-commits] [llvm] r146325 - /llvm/trunk/cmake/modules/VersionFromVCS.cmake
Chandler Carruth
chandlerc at gmail.com
Sat Dec 10 02:18:47 PST 2011
Author: chandlerc
Date: Sat Dec 10 04:18:47 2011
New Revision: 146325
URL: http://llvm.org/viewvc/llvm-project?rev=146325&view=rev
Log:
Use a simpler and more reliable command for converting from HEAD to
commit-ish. Funny thing, they have a command designed for this. ;]
Modified:
llvm/trunk/cmake/modules/VersionFromVCS.cmake
Modified: llvm/trunk/cmake/modules/VersionFromVCS.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/VersionFromVCS.cmake?rev=146325&r1=146324&r2=146325&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/VersionFromVCS.cmake (original)
+++ llvm/trunk/cmake/modules/VersionFromVCS.cmake Sat Dec 10 04:18:47 2011
@@ -50,7 +50,7 @@
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
More information about the llvm-commits
mailing list