X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=utils%2FGetRepositoryPath;h=2d1122e4bc4fad30cc8da658472b0e817a703716;hb=9fed20c12924fb7c25456c34e31c58fc6347d95a;hp=f3b0cc56e25506917b6cca307683c48691c5e791;hpb=e1accd76606721d3efcdc9b511b74e64c9ac3947;p=oota-llvm.git diff --git a/utils/GetRepositoryPath b/utils/GetRepositoryPath index f3b0cc56e25..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- + 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