Re: Can I switch a git-svn clone from a file => http url?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Stephen Bannasch <stephen.bannasch@...>
Cc: <git@...>
Date: Wednesday, April 2, 2008 - 11:17 am

On 2008.04.02 10:38:34 -0400, Stephen Bannasch wrote:

I guess you should have used the --rewrite-root option when you did the
clone. Then the metadata in the log entries would already point to the
right URL and you could just adjust the URL in .git/config and drop the
rewriteRoot entry there.


Basically, this should work:

Change the URL to the repo in your .git/config.
Use filter-branch to change all git-svn-id lines in the log entries.
Delete the .rev_map.* files in .git/svn/*
Run git svn fetch (rebuilds the .rev_map.* files).

The filter-branch call should use the --msg-filter option to change the
log entries and should apply to all the svn branches/tags/trunk (or just
use " -- --all", if there's nothing that may not be filtered).

HTH
Björn
--
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:
Can I switch a git-svn clone from a file =&gt; http url?, Stephen Bannasch, (Wed Apr 2, 10:38 am)
Re: Can I switch a git-svn clone from a file =&gt; http url?, Stephen Bannasch, (Thu Apr 3, 8:49 pm)
Re: Can I switch a git-svn clone from a file => http url?, Björn, (Wed Apr 2, 11:17 am)
Re: Can I switch a git-svn clone from a file =&gt; http url?, Stephen Bannasch, (Wed Apr 2, 10:06 pm)
Re: Can I switch a git-svn clone from a file =&gt; http url?, Johannes Schindelin, (Wed Apr 2, 9:47 am)