summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xutils/GetRepositoryPath2
-rwxr-xr-xutils/GetSourceVersion2
2 files changed, 2 insertions, 2 deletions
diff --git a/utils/GetRepositoryPath b/utils/GetRepositoryPath
index 326231c9e5..f3b0cc56e2 100755
--- a/utils/GetRepositoryPath
+++ b/utils/GetRepositoryPath
@@ -16,7 +16,7 @@ fi
cd $1
if [ -d .svn ]; then
svn info | grep 'URL:' | cut -d: -f2-
-elif [ -d .git/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 }'
diff --git a/utils/GetSourceVersion b/utils/GetSourceVersion
index cbed7daf5b..b57a6aa2f3 100755
--- a/utils/GetSourceVersion
+++ b/utils/GetSourceVersion
@@ -16,7 +16,7 @@ fi
cd $1
if [ -d .svn ]; then
svnversion | sed -e "s#\([0-9]*\)[A-Z]*#\1#"
-elif [ -d .git/svn ]; then
+elif [ -f .git/svn/.metadata ]; then
git svn info | grep 'Revision:' | cut -d: -f2-
elif [ -d .git ]; then
git log -1 --pretty=format:%H