summaryrefslogtreecommitdiffstats
path: root/llvm/utils/GetRepositoryPath
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2012-05-15 18:44:09 +0000
committerDaniel Dunbar <daniel@zuster.org>2012-05-15 18:44:09 +0000
commitbf0bf743d7ed6c2e768bc92d4c09c21a7b6edc0e (patch)
tree348c88d0617ffbd655cb514c7a9312b5e0105c92 /llvm/utils/GetRepositoryPath
parentc4a8a76048e91baecb5746b80b9733e4af299937 (diff)
downloadbcm5719-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/GetRepositoryPath')
-rwxr-xr-xllvm/utils/GetRepositoryPath2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/GetRepositoryPath b/llvm/utils/GetRepositoryPath
index 326231c9e5d..f3b0cc56e25 100755
--- a/llvm/utils/GetRepositoryPath
+++ b/llvm/utils/GetRepositoryPath
@@ -16,7 +16,7 @@ fi
cd $1
if [ -d .svn ]; then
svn info | grep 'URL:' | cut -d: -f2-
-elif [ -d .git/svn ]; then
+elif [ -f .git/svn/.metadata ]; then
git svn info | grep 'URL:' | cut -d: -f2-
elif [ -d .git ]; then
git remote -v | grep 'fetch' | awk '{ print $2 }'
OpenPOWER on IntegriCloud