I want to clone a SVN tree into a git repo using git-svn. I'd like to make a complete clone, including tags and branches, but I hit a problem with the tags organization.
the SVN tags folder looks like this:
tags/
|-- Backup
| |-- 20080212
| `-- 20080217
|-- V4.0.1
|-- V4.0.2
`-- V4.0.3
I know about git svn clone -T trunk -b branches -t tags/Backup -t tags
with twice the -t
option, but this is not entirely satisfying:
$ git branch -r
tags/20080212
tags/20080217
tags/Backup
tags/V4.0.1
tags/V4.0.2
tags/V4.0.3
trunk
As you can see, all the tags are here, but one is too much: the Backup tag is actually not a tag but a folder containing tags. The problem is that it creates an orphan branch which duplicate the content of all the backup branches.
The question is: How do I make git-svn ignore the backup folder but know about the backup subfolders as tags, keeping the classical tags available?
And as a bonus: how to automatically name the Backup tags as Backup/20080217
instead of 20080217
?
Thanks!