nirvdrum / svn2git

Ruby tool for importing existing svn projects into git.
MIT License
2.11k stars 443 forks source link

Not able to get tags and branches of non-standard svn layout #260

Open avaneesh-c opened 7 years ago

avaneesh-c commented 7 years ago

I am trying to migrate the tags and branches which have a non-standard layout like branches/ABC/my-project branches/DEF/my-project

tags/my-project-1.0 tags/my-project-2.0 tags/not-my-project-1.0

How can I specify the rules such that only my-project-1.0 and 2.0 are migrated?

When I did --tags it's adding the entries for tags in .git/config as follows tags = tags/my-project-1.0/}:refs/remotes/tags/ tags = tags/my-project-2.0/}:refs/remotes/tags/

and the tags create are with the name of contents inside my-project-1.0.

Is there any way we can specify in the command line such that the tags will be like this in config:

tags = tags/{my-project-1.0,my-project-2.0}:refs/remotes/tags/*

mazong1123 commented 7 years ago

Similar to https://github.com/nirvdrum/svn2git/issues/261 . We need more powerful control when choosing tags and branches. I'm tracking this issue in the new project: https://github.com/mazong1123/svn2gitnet/issues/60