aboutsummaryrefslogtreecommitdiffstats
path: root/utils/GetRepositoryPath
diff options
context:
space:
mode:
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 f3b0cc5..2d1122e 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