From: Peter Baumann <waste.manager@gmx.de>
To: Daniel Trebbien <dtrebbien@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: git-svn: How dependent is the git-svn repository on the Subversion repository URL?
Date: Sun, 12 Sep 2010 08:57:12 +0200 [thread overview]
Message-ID: <20100912065712.GA11407@m62s10.vlinux.de> (raw)
In-Reply-To: <loom.20100912T032208-79@post.gmane.org>
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.
prev parent reply other threads:[~2010-09-12 6:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-12 1:29 git-svn: How dependent is the git-svn repository on the Subversion repository URL? Daniel Trebbien
2010-09-12 6:57 ` Peter Baumann [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100912065712.GA11407@m62s10.vlinux.de \
--to=waste.manager@gmx.de \
--cc=dtrebbien@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).