git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: svn repository URL and git

From
Mathias Lafeldt <misfire@debugon.org>
Date
Oct 28, 2010, 19:31 UTC
Message-ID
<4CC9CF86.7040307@debugon.org>
In-Reply-To
<20101028190227.GC46314@acme.spoerlein.net>
On 10/28/2010 09:02 PM, Ulrich Spörlein wrote:
Show 27 quoted lines
> On Thu, 28.10.2010 at 16:58:28 +0000, H Krishnan wrote:
>>
>> Hi,
>> I think I resolved this problem by using --rewrite-root as suggested. I used a 
>> dummy root during the git-svn clone:
>>
>> git-svn clone --rewrite-root http://git.is.great <myrepo>
>>
>> All my commit messages now have http://git.is.great but I am able to change the 
>> repository URL and continue.
>>
>> Could this approach be used as an insurance against svn url changes? When 
>> initializing the repository, we could use --rewrite-root. Subsequently, if the 
>> svn repository relocates, we need to edit only .git/config. 
> 
> Yes, that's exactly what the rewrite-url was introduced for, you can
> even clone from a local svnsync mirror (iff the UUID matches, you have
> to setup the mirror in a special way ...).
> 
> So, every developer must use:
> 
> $ git svn clone --rewrite-root CANONICAL-URL-NEVER-TO-CHANGE <whatever-url-is-convenient>
> 
> Oh, and all devs must use the same authormap (or no authormap at all).
> 
> hth,
> Uli
FYI, I just learned [1] that git-svn even has a --rewrite-uuid option.
[1] http://www.kernel.org/pub/software/scm/git/docs/git-svn.html
-Mathias
Previous: Ulrich SpörleinNext: Ulrich Spörlein
Message 6 of 8 in “svn repository URL and git”
  1. H KrishnanOct 27, 2010
  2. Mathias LafeldtOct 27, 2010
  3. H KrishnanOct 27, 2010
  4. H KrishnanOct 28, 2010
  5. Ulrich SpörleinOct 28, 2010
  6. Mathias LafeldtOct 28, 2010
  7. Ulrich SpörleinOct 28, 2010
  8. H KrishnanOct 29, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.