projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78304a9
)
Use a simpler and more reliable command for converting from HEAD to
author
Chandler Carruth
<chandlerc@gmail.com>
Sat, 10 Dec 2011 10:18:47 +0000
(10:18 +0000)
committer
Chandler Carruth
<chandlerc@gmail.com>
Sat, 10 Dec 2011 10:18:47 +0000
(10:18 +0000)
commit-ish. Funny thing, they have a command designed for this. ;]
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146325
91177308
-0d34-0410-b5e6-
96231b3b80d8
cmake/modules/VersionFromVCS.cmake
patch
|
blob
|
history
diff --git
a/cmake/modules/VersionFromVCS.cmake
b/cmake/modules/VersionFromVCS.cmake
index bf5776303dddda8736c52dd5cb3605c74c9ed766..a55e9b837f3870e69a7773459797af0cc339fc32 100644
(file)
--- a/
cmake/modules/VersionFromVCS.cmake
+++ b/
cmake/modules/VersionFromVCS.cmake
@@
-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