[TableGen] Use array_pod_sort. NFC
[oota-llvm.git] / utils / GetRepositoryPath
index f3b0cc56e25506917b6cca307683c48691c5e791..2d1122e4bc4fad30cc8da658472b0e817a703716 100755 (executable)
@@ -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