Re: git-svnimport

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Steven Walter
Date: Thursday, October 25, 2007 - 3:20 pm

On Thu, Oct 25, 2007 at 02:04:29PM +0100, Johannes Schindelin wrote:

More than that, you'll want to:

    git svn init <foo>
    cp .git/refs/remotes/origin/master .git/refs/remotes/git-svn
    git svn fetch

If git-svn doesn't find a remote named "git-svn" it will assume that it
has no information about the repository and starting doing a full
checkout.  By copying the ref, git-svn will see that there are already
commits with git-svn-id lines and rebuild its "rev-db".  After that, it
will incrementally update for newer revisions.

That ought to save you a few precious minutes :)
-- 
-Steven Walter <stevenrwalter@gmail.com>
Freedom is the freedom to say that 2 + 2 = 4
B2F1 0ECC E605 7321 E818  7A65 FC81 9777 DC28 9E8F 
-
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:
git-svnimport, Felipe Balbi, (Thu Oct 25, 2:25 am)
Re: git-svnimport, Johannes Schindelin, (Thu Oct 25, 3:56 am)
Re: git-svnimport, Felipe Balbi, (Thu Oct 25, 4:08 am)
Re: git-svnimport, Johannes Schindelin, (Thu Oct 25, 6:04 am)
Re: git-svnimport, Steven Walter, (Thu Oct 25, 3:20 pm)
Re: git-svnimport, Johannes Schindelin, (Thu Oct 25, 3:22 pm)
Re: git-svnimport, Gerrit Pape, (Fri Oct 26, 7:55 am)
Re: git-svnimport, Johannes Schindelin, (Fri Oct 26, 9:45 am)
Re: git-svnimport, Steven Grimm, (Fri Oct 26, 11:06 am)
Re: git-svnimport, Junio C Hamano, (Fri Oct 26, 12:30 pm)