From a24a1dcc890d767a9fe45d7f5354c7df6a45515c Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Sun, 25 Aug 2013 17:32:54 +0100 Subject: Support imports where there is no stdlayout --- scripts/mandriva-svn2git.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts') 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 -- cgit v1.2.1