summaryrefslogtreecommitdiff
path: root/utils/GetRepositoryPath
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2013-12-22 00:04:03 +0000
committerDimitry Andric <dim@FreeBSD.org>2013-12-22 00:04:03 +0000
commitf8af5cf600354830d4ccf59732403f0f073eccb9 (patch)
tree2ba0398b4c42ad4f55561327538044fd2c925a8b /utils/GetRepositoryPath
parent59d6cff90eecf31cb3dd860c4e786674cfdd42eb (diff)
Diffstat (limited to 'utils/GetRepositoryPath')
-rwxr-xr-xutils/GetRepositoryPath4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/GetRepositoryPath b/utils/GetRepositoryPath
index f3b0cc56e2550..2d1122e4bc4fa 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