* git-svn and branches with spaces
@ 2009-02-20 23:26 Dan Fabulich
0 siblings, 0 replies; only message in thread
From: Dan Fabulich @ 2009-02-20 23:26 UTC (permalink / raw)
To: git
As others have noticed, git-svn can't handle branches with spaces.
http://markmail.org/message/r56iyw3vubwbycgt
Turns out that there is a possible workaround: thiago's
svn-all-fast-export tool is super super configurable, allowing you to work
around evil branch names by modifying your matching rules.
http://repo.or.cz/w/svn-all-fast-export.git
I made rules like this:
match /branches/crazy branch with spaces/
repository myproject
branch crazy_branch_with_spaces
end match
match /branches/([^/]+)/
repository myproject
branch \1
end match
Since the rules apply in order, the evil branch name matched before the
catch-all matcher, fixing my problem.
And it doesn't hurt that svn-all-fast-export is at least an order of
magnitude faster than git-svn clone... If you find that git-svn is too
slow, I strongly recommend svn-all-fast-export.git for performance alone!
-Dan
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-02-20 23:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-20 23:26 git-svn and branches with spaces Dan Fabulich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).