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

Re: svn repository URL and git

From
USUlrich Spörlein <uqs@spoerlein.net>
Date
Oct 28, 2010, 19:02 UTC
Message-ID
<20101028190227.GC46314@acme.spoerlein.net>
In-Reply-To
<loom.20101028T184823-831@post.gmane.org>
On Thu, 28.10.2010 at 16:58:28 +0000, H Krishnan wrote:
Show 13 quoted lines
> 
> 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

Previous: H KrishnanNext: Mathias Lafeldt
Message 5 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.