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: <git@...>
Cc: Stephen Bannasch <stephen.bannasch@...>
Date: Thursday, April 3, 2008 - 2:05 am

Stephen Bannasch kirjoitti:


I know two options:

1. Keep your current Git repo but set the url and rewriteroot options 
in .git/config:

[svn-remote "svn"]
	url = http://...
	rewriteroot = file:///...

Your commit messages will still have git-svn-id pointing at file:///... 
url but it should work fine.


2. Convert your repo again:

$ mkdir repo ; cd repo
$ git svn init --rewrite-root=http://... file:///...
$ git svn fetch

This way you'll create new Git repo from file:///... url but commit 
messages will have git-svn-id's url pointing at http://... . After that 
set the correct remote url to .git/config:

[svn-remote "svn"]
	url = http://...
--
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 => http url?, Teemu Likonen, (Thu Apr 3, 2:05 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 =&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)