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 | bf0bf743d7ed6c2e768bc92d4c09c21a7b6edc0e (patch) | |
| tree | 348c88d0617ffbd655cb514c7a9312b5e0105c92 /llvm/utils/GetSourceVersion | |
| parent | c4a8a76048e91baecb5746b80b9733e4af299937 (diff) | |
| download | bcm5719-llvm-bf0bf743d7ed6c2e768bc92d4c09c21a7b6edc0e.tar.gz bcm5719-llvm-bf0bf743d7ed6c2e768bc92d4c09c21a7b6edc0e.zip | |
[utils] Fix Get{RepositoryPath,SourceVersion} to have a more robust is-git-svn
check.
llvm-svn: 156836
Diffstat (limited to 'llvm/utils/GetSourceVersion')
| -rwxr-xr-x | llvm/utils/GetSourceVersion | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/GetSourceVersion b/llvm/utils/GetSourceVersion index cbed7daf5b6..b57a6aa2f3a 100755 --- a/llvm/utils/GetSourceVersion +++ b/llvm/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 |

