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

Re: git-svn: How dependent is the git-svn repository on the Subversion repository URL?

From
PBPeter Baumann <waste.manager@gmx.de>
Date
Sep 12, 2010, 06:57 UTC
Message-ID
<20100912065712.GA11407@m62s10.vlinux.de>
In-Reply-To
<loom.20100912T032208-79@post.gmane.org>
On Sun, Sep 12, 2010 at 01:29:52AM +0000, Daniel Trebbien wrote:
Show 8 quoted lines
> If I initialize the git-svn repository by passing in the location of a local
> mirror, as in:
> git svn init -s file:///path/to/mirror
> and proceed to fetch all revisions from the mirror, may I simply change the
> `url = ` line of `.git/config` to make it point to the real repository, or is
> the git repository that is created by git-svn dependent on the original URL that
> was specified in the initialization?
> 

Changing only the url in the config does won't work, because git-svn appends a line to every commit message which includes the SVN URL. But If I remember correctly, putting something like this into the config file *will* work

[svn-remote "svn"]
        rewriteRoot = svn://url/to/pubic/svn/server
        url = file:///path/to/mirror

After the initial import you could exchange the url with the rewriteRoot url and remove the later entry completly.

So have a look at --rewrite-root in the git svn manpage.
Previous: Daniel Trebbien
Message 2 of 2 in “git-svn: How dependent is the git-svn repository on the Subversion repository URL?”
  1. Daniel TrebbienSep 12, 2010
  2. Peter BaumannSep 12, 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.