summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/mandriva-svn2git.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/mandriva-svn2git.sh b/scripts/mandriva-svn2git.sh
index e07127a..bd08776 100755
--- a/scripts/mandriva-svn2git.sh
+++ b/scripts/mandriva-svn2git.sh
@@ -19,7 +19,11 @@ if [ -n "$skiprevisionsx" ]; then
fi
# STEP 2: Import in git
-git svn init http://svn.mandriva.com/svn/soft/$SOFTWARE --no-metadata --stdlayout temp
+STDLAYOUT=--stdlayout
+if [ "$(svn ls http://svn.mandriva.com/svn/soft/$SOFTWARE/trunk 2>/dev/null | wc -l)" == "0" ]; then
+ STDLAYOUT=
+fi
+git svn init http://svn.mandriva.com/svn/soft/$SOFTWARE --no-metadata $STDLAYOUT temp
cd temp
revision=0
if [ -n "$skiprevisions" ]; then