Re: git-svn: multiple branches directories

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2008.06.08 21:37:42 +0300, Tzafrir Cohen wrote:
> On Sun, Jun 08, 2008 at 12:00:58PM -0400, Steven Walter wrote:
> > On Sat, Jun 7, 2008 at 8:23 PM, Tzafrir Cohen <tzafrir.cohen@xxxxxxxxxx> wrote:
> > > Hi
> > >
> > > Does git-svn support a repository layout where branches may reside under
> > > more than one root?
> > >
> > > /trunk
> > > /branches
> > >  branch1
> > >  branch2
> > >  branch3
> > > /somedir
> > >  branch4
> > >  branch5
> > >  branch6
> > > /tags
> > >  ...
> > 
> > git-svn does support it.  The way that I interact with repositories
> > like this is to have the main git-svn remote track only the trunk
> > (fetch = /trunk:...), and then to add addititonal remotes for each
> > branch that I want to track.  There may be a nicer way to do it, but
> > git-svn certainly supports the method just described.
> 
> Thanks for your answer,
> 
> I'm afraid I don't follow you. Where do I have to write that and where?

You can just add more svn-remote to a single git repo with "git svn
init". So you could do:

git svn clone -s svn://host/some/repo
cd repo
git svn init --branches somedir svn://host/some/repo/ svn2
git svn fetch svn2

To fetch all new stuff at once, you would then later use "git svn fetch
--all".

Björn
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux