Hi Oliver,

You can assign custom paths to to git-svn. Imagine a file structure like 
this:

➜  ~/temp/git-svn-example/>tree
.
├── branches
│   └── stable
│       └── big-project
│           └── project-A
│               └── stuff-in-stable-branch
├── tags
│   └── 1.0
│       └── big-project
│           └── project-A
│               └── stuff-in-tag
└── trunk
    └── big-project
        └── project-A
            └── foo


Now you import this structure into svn, just for testing:

cd /Users/tfnico
svnadmin create svn-repo
svn import git-svn-example file:///Users/tfnico/svn-repo/

Now you can clone the subproject A like this:

cd temp #I like experimenting inside a little temp folder like this
git svn clone --prefix=svn/ file:///Users/tfnico/svn-repo/ -T 
"trunk/big-project/project-A" -b "branches/*/big-project/project-A" -t 
"tags/*/big-project/project-A" project-A

Resulting git repo:

➜  ~/temp/project-A/[master]>git branch -a
* master
  remotes/svn/stable
  remotes/svn/tags/1.0
  remotes/svn/trunk

➜  ~/temp/project-A/[master]>ls 
foo

➜  ~/temp/project-A/[master]>git co -t svn/stable
Branch stable set up to track local ref refs/remotes/svn/stable.
Switched to a new branch 'stable'

➜  ~/temp/project-A/[stable]>ls
stuff-in-stable-branch


So, all expected branches are there, and the files seem to be in the right 
places.

Hope this helps!

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/git-users/-/T3SToUDWtoMJ.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.

Reply via email to