Oddly formatted SVN repo before Git

I am working on a port of a very old svn repo, which, unfortunately, was done in a non-standard way. See the following format:

PROJECT/
  trunk/
    service1/
    service2/
  branches/
    service1-1.0
    service1-1.1
    service1.1.2
    service2-1.0
  tags/
    service1-1.0.0
    service1-1.0.1
    service2.1.0.0

Now the git repo needs to be converted only once - we do not need to support both at the same time. I tried several different ways to do this. The closest I got is something like this:

svn2git --username user.name --trunk trunk/service1 --branches branches/service1-* --tags tags/service1-* --revision 12 --authors ../authors.txt -v https://www.domain.com/svn/PROJECT/

I would be very grateful if anyone could lend a hand! Thank.

EDIT: Thanks Alexis. Forgot to post this bit. Here is the result: Invalid pattern in 'PROJECT/branches/service1-*': service1-*

+3
source share
1 answer

Specify the root of the branches and tags at the level of the branch and tag folders. Then remove the branches and tags that you do not need for each project.

0
source

All Articles