git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-svn: Fetch svn branches only and have git recognize them as branches?
@ 2015-03-12 22:30 Brian Koehmstedt
  2015-03-12 23:13 ` Junio C Hamano
  2015-03-12 23:33 ` Eric Wong
  0 siblings, 2 replies; 5+ messages in thread
From: Brian Koehmstedt @ 2015-03-12 22:30 UTC (permalink / raw)
  To: git

I'm trying deal with a project where the server is disallowing access to
the root URL on the subversion server.

i.e.,
Doesn't allow access: http://abc.com/repo
Does allow access: http://abc.com/repo/trunk, http://abc.com/repo/branches,
http://abc.com/repo/tags

I know I can git-svn to clone each separately and get three separate git
repositories, which isn't really what I want (Ideally I want one, with the
branches and tags recognized).

But neverminding that for a second, even if I end up with three git
repositories, I'd also like to figure out how to get git-svn to clone
http://abc.com/branches and recognize all the top-level directories as a
branch in git, rather than it treating it all as separate directories on
one branch.

Same would be true for tags.

Is this possible with .git/config editing?

My latest failed attempt was this:

[svn-remote "svn"]
        url = http://abc.com/repo/branches
        fetch = :refs/remotes/svn/branches
        branches = *:refs/remotes/svn/*

git svn fetch svn
This fetched all the branch directories as one branch.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-03-16 14:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-12 22:30 git-svn: Fetch svn branches only and have git recognize them as branches? Brian Koehmstedt
2015-03-12 23:13 ` Junio C Hamano
2015-03-12 23:51   ` Brian Koehmstedt
2015-03-16 14:27     ` Brian Koehmstedt
2015-03-12 23:33 ` Eric Wong

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).