git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Teemu Likonen <tlikonen@iki.fi>
To: git@vger.kernel.org
Cc: Stephen Bannasch <stephen.bannasch@deanbrook.org>
Subject: Re: Can I switch a git-svn clone from a file => http url?
Date: Thu, 3 Apr 2008 09:05:46 +0300	[thread overview]
Message-ID: <200804030905.46425.tlikonen@iki.fi> (raw)
In-Reply-To: <p06240804c41942f6276e@[192.168.1.114]>

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.

I know two options:

1. Keep your current Git repo but set the url and rewriteroot options 
in .git/config:

[svn-remote "svn"]
	url = http://...
	rewriteroot = file:///...

Your commit messages will still have git-svn-id pointing at file:///... 
url but it should work fine.


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://...

  parent reply	other threads:[~2008-04-03  6:06 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 [this message]
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200804030905.46425.tlikonen@iki.fi \
    --to=tlikonen@iki.fi \
    --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.
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).