[TableGen] Use array_pod_sort. NFC
[oota-llvm.git] / utils / GetRepositoryPath
index b915251c1a29c9510a3d94e3428dfe7db4770872..2d1122e4bc4fad30cc8da658472b0e817a703716 100755 (executable)
@@ -19,7 +19,7 @@ if [ -d .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 }'
+  git remote -v | grep 'fetch' | awk '{ print $2 }' | head -n1
 else
   exit 1;
 fi