diff options
author | Daniel Dunbar <daniel@zuster.org> | 2012-05-15 18:44:09 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2012-05-15 18:44:09 +0000 |
commit | e1accd76606721d3efcdc9b511b74e64c9ac3947 (patch) | |
tree | c1be8f811cd3f82aea4023cd8934cd176f1d2eeb /utils/GetSourceVersion | |
parent | 0ee07e013095e8c298fbcc5203e0bc9f334e15e1 (diff) | |
download | external_llvm-e1accd76606721d3efcdc9b511b74e64c9ac3947.zip external_llvm-e1accd76606721d3efcdc9b511b74e64c9ac3947.tar.gz external_llvm-e1accd76606721d3efcdc9b511b74e64c9ac3947.tar.bz2 |
[utils] Fix Get{RepositoryPath,SourceVersion} to have a more robust is-git-svn
check.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156836 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/GetSourceVersion')
-rwxr-xr-x | utils/GetSourceVersion | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/GetSourceVersion b/utils/GetSourceVersion index cbed7da..b57a6aa 100755 --- a/utils/GetSourceVersion +++ b/utils/GetSourceVersion @@ -16,7 +16,7 @@ fi cd $1 if [ -d .svn ]; then svnversion | sed -e "s#\([0-9]*\)[A-Z]*#\1#" -elif [ -d .git/svn ]; then +elif [ -f .git/svn/.metadata ]; then git svn info | grep 'Revision:' | cut -d: -f2- elif [ -d .git ]; then git log -1 --pretty=format:%H |