summaryrefslogtreecommitdiff
path: root/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
commite1accd76606721d3efcdc9b511b74e64c9ac3947 (patch)
treec1be8f811cd3f82aea4023cd8934cd176f1d2eeb /utils/GetRepositoryPath
parent0ee07e013095e8c298fbcc5203e0bc9f334e15e1 (diff)
downloadllvm-e1accd76606721d3efcdc9b511b74e64c9ac3947.tar.gz
llvm-e1accd76606721d3efcdc9b511b74e64c9ac3947.tar.bz2
llvm-e1accd76606721d3efcdc9b511b74e64c9ac3947.tar.xz
[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/GetRepositoryPath')
-rwxr-xr-xutils/GetRepositoryPath2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/GetRepositoryPath b/utils/GetRepositoryPath
index 326231c9e5..f3b0cc56e2 100755
--- a/utils/GetRepositoryPath
+++ b/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 }'