Re: Split a subversion repo into several git repos

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eivind LM
Date: Friday, October 12, 2007 - 7:14 am

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


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 suppose this is due to my silly svn-repo layout... However, after some  
trial and error it seems like the following command gives me what I want  
(I don't need tags or other branches than main):

   $ git-svn clone file:///svn-repo/ --follow-parent \
                   -T eivindlm/trunk/src/probesimulator

It seems to realize that the probesimulator directory has moved around in  
my tree, and gives me history for files that belongs in this directory  
only (and not history for other directories). So the problem appears to be  
solved for my part, unless you see a reason for why I should not do it in  
this way.


Thanks a lot for the help to everyone who replied!

Eivind
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Split a subversion repo into several git repos, Eivind LM, (Thu Oct 11, 5:51 am)
Re: Split a subversion repo into several git repos, Patrick Doyle, (Thu Oct 11, 6:24 am)
Re: Split a subversion repo into several git repos, Jonathan del Strother, (Thu Oct 11, 6:46 am)
Re: Split a subversion repo into several git repos, Patrick Doyle, (Thu Oct 11, 7:02 am)
Re: Split a subversion repo into several git repos, Sam Vilain, (Thu Oct 11, 2:40 pm)
Re: Split a subversion repo into several git repos, Eivind LM, (Fri Oct 12, 7:14 am)
Re: Split a subversion repo into several git repos, Eivind LM, (Fri Oct 12, 7:15 am)
Re: Split a subversion repo into several git repos, Jonathan del Strother, (Fri Oct 12, 7:23 am)
Re: Split a subversion repo into several git repos, Eivind LM, (Fri Oct 12, 7:47 am)
Re: Split a subversion repo into several git repos, Sam Vilain, (Fri Oct 12, 1:27 pm)