Re: Split a subversion repo into several git repos

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

 



On 12 Oct 2007, at 15:14, Eivind LM wrote:

On Thu, 11 Oct 2007 23:40:40 +0200, Sam Vilain <sam@xxxxxxxxxx> wrote:

Jonathan del Strother wrote:
For example, I want to convert one subversion repository which
contains the folders:
trunk/projectA
trunk/projectB

into two git repositories:
projectA.git
projectB.git

I have a slightly different layout to you -

projectA/trunk
projectA/branches
projectA/tags
projectB/trunk
projectB/branches
projectB/tags
etc

- but I've been creating separate git repos from that with (for
example) :

git-svn init -t tags -b branches -T trunk http://svn.host.com/projectA
git-svn fetch


Or will git-svn not work with your sort of layout?

It does work.  Use:

git-svn init -t projectA/tags -b projectA/branches \
  -T trunk/projectA http://svn.host.com/
git fetch

With my paths this translates into

 $ git-svn init -b eivindlm/branches \
                -t eivindlm/tags \
                -T eivindlm/trunk/src/probesimulator \
                file:///svn-repo/
, which prints the happy message:
 Initialized empty Git repository in .git/

The next command is unfortunately not as happy:
 $ git fetch
 fatal: 'origin': unable to chdir or not a git archive
 fatal: The remote end hung up unexpectedly
 Cannot get the repository state from origin


I believe you actually wanted "git-svn fetch" here

-
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