git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Stephen Bannasch <stephen.bannasch@deanbrook.org>
To: Teemu Likonen <tlikonen@iki.fi>, git@vger.kernel.org
Subject: Re: Can I switch a git-svn clone from a file => http url?
Date: Thu, 3 Apr 2008 20:49:54 -0400	[thread overview]
Message-ID: <p06240804c41b28150d6a@[63.138.152.125]> (raw)
In-Reply-To: <200804030905.46425.tlikonen@iki.fi>

At 9:05 AM +0300 4/3/08, Teemu Likonen wrote:
>Stephen Bannasch kirjoitti:
>
>> 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.
>
>2. Convert your repo again:
>
>$ mkdir repo ; cd repo
>$ git svn init --rewrite-root=http://... file:///...
>$ git svn fetch
>
>This way you'll create new Git repo from file:///... url but commit
>messages will have git-svn-id's url pointing at http://... . After that
>set the correct remote url to .git/config:
>
>[svn-remote "svn"]
>	url = http://...

Thanks Teemu,

That took a while but worked.

I also removed the rewriteRoot line from config after editing the url.

I think I might have achieved the same effect more quickly with Björn's suggestion to use:

  git-filter-branch --msg-filter

to:

> >Use filter-branch to change all git-svn-id lines in the log entries.

But it wasn't clear to me how to change the git-svn-id lines.

      reply	other threads:[~2008-04-04  0:51 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
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 [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

  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='p06240804c41b28150d6a@[63.138.152.125]' \
    --to=stephen.bannasch@deanbrook.org \
    --cc=git@vger.kernel.org \
    --cc=tlikonen@iki.fi \
    /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).