tags:

views:

19

answers:

1

Is there any way to use git-svn to clone only some folders of an SVN repo structure. I'm trying to clone a repo that has some crazy big binary files and a number of subfolders that are just plain useless. I've tried using the --ignore-paths option, but my clone seemed to just stall out doing nothing for an extremely long time. Have any of you managed to make --ignore-paths work? I can't find much on the webs where anyone else is running into this. Maybe I'm the only one.

A: 

Perhaps you can illustrate the structure of your Subversion repository to make it easier for us to suggest some solutions.

Are you trying to git svn clone the entire repository from the root-url? Have you tried cloning smaller parts of the repo, and then perhaps grafting several clones together?

Thomas Ferris Nicolaisen
The repository I've been trying to clone is similar to the OCAP RI open source project. It's located on java.net. Take a look if you'd like to see the structure they have. It's pretty awful. My company has an internal copy of this repo with its own crazy structure that adds even more branches.
Kevin
I've had some success by using --ignore-paths and only checking out one or 2 revisions from SVN. But I'm still not really happy with it. This might just be an intractable problem that isn't really worth solving. I was hoping I could git svn clone only a couple folders from all the branches.
Kevin

related questions