X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=utils%2FGetRepositoryPath;h=2d1122e4bc4fad30cc8da658472b0e817a703716;hb=2ed715793dab2aad328fc94a4ddef1685180972a;hp=326231c9e5d41c5f3abcd4b776715be0b009f9e6;hpb=1619beb4e2edb69aeb78cd2338a00dc201974f89;p=oota-llvm.git diff --git a/utils/GetRepositoryPath b/utils/GetRepositoryPath index 326231c9e5d..2d1122e4bc4 100755 --- a/utils/GetRepositoryPath +++ b/utils/GetRepositoryPath @@ -15,11 +15,11 @@ fi cd $1 if [ -d .svn ]; then - svn info | grep 'URL:' | cut -d: -f2- -elif [ -d .git/svn ]; then + svn info | grep '^URL:' | cut -d: -f2- +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 }' + git remote -v | grep 'fetch' | awk '{ print $2 }' | head -n1 else exit 1; fi