summaryrefslogtreecommitdiffstats
path: root/llvm/utils/GetRepositoryPath
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/utils/GetRepositoryPath')
-rwxr-xr-xllvm/utils/GetRepositoryPath2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/GetRepositoryPath b/llvm/utils/GetRepositoryPath
index b915251c1a2..2d1122e4bc4 100755
--- a/llvm/utils/GetRepositoryPath
+++ b/llvm/utils/GetRepositoryPath
@@ -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
OpenPOWER on IntegriCloud