From: "Björn Steinbrink" <B.Steinbrink@gmx.de>
To: Stephen Bannasch <stephen.bannasch@deanbrook.org>
Cc: git@vger.kernel.org
Subject: Re: Can I switch a git-svn clone from a file => http url?
Date: Wed, 2 Apr 2008 17:17:21 +0200 [thread overview]
Message-ID: <20080402151721.GA31738@atjola.homenet> (raw)
In-Reply-To: <p06240804c41942f6276e@[192.168.1.114]>
On 2008.04.02 10:38:34 -0400, Stephen Bannasch wrote:
> I've just created a git-svn clone from a svn repo accessed locally with a
> file:/// path.
>
> Unfortunately the local svn repo is just a copy of the main svn repo
> normally accessed with http or https (served through Apache). I was
> having problems cloning the main svn repository (more details below) so I
> archived the remote svn repository and copied it to my local hard drive.
I guess you should have used the --rewrite-root option when you did the
clone. Then the metadata in the log entries would already point to the
right URL and you could just adjust the URL in .git/config and drop the
rewriteRoot entry there.
> Is there an operation I can now do to switch the base url from:
>
> file:///Path/to/svn/repository/projects
>
> to
>
> https://svn.concord.org/svn/projects
Basically, this should work:
Change the URL to the repo in your .git/config.
Use filter-branch to change all git-svn-id lines in the log entries.
Delete the .rev_map.* files in .git/svn/*
Run git svn fetch (rebuilds the .rev_map.* files).
The filter-branch call should use the --msg-filter option to change the
log entries and should apply to all the svn branches/tags/trunk (or just
use " -- --all", if there's nothing that may not be filtered).
HTH
Björn
next prev parent reply other threads:[~2008-04-02 15:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-02 14:38 Can I switch a git-svn clone from a file => http url? Stephen Bannasch
2008-04-02 13:47 ` Johannes Schindelin
2008-04-02 15:17 ` Björn Steinbrink [this message]
2008-04-03 2:06 ` Stephen Bannasch
2008-04-05 0:23 ` Björn Steinbrink
2008-04-03 6:05 ` Teemu Likonen
2008-04-04 0:49 ` Stephen Bannasch
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080402151721.GA31738@atjola.homenet \
--to=b.steinbrink@gmx.de \
--cc=git@vger.kernel.org \
--cc=stephen.bannasch@deanbrook.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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).