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

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

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

From: Daniel Trebbien <hidden>
Date: 2016-06-15 22:49:32

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?

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

From: Peter Baumann <hidden>
Date: 2016-06-15 22:49:32

On Sun, Sep 12, 2010 at 01:29:52AM +0000, Daniel Trebbien wrote:
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help