git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
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: Sat, 5 Apr 2008 02:23:10 +0200	[thread overview]
Message-ID: <20080405002310.GB3101@atjola.homenet> (raw)
In-Reply-To: <p06240802c419e22d78a7@[63.138.152.125]>

[missed the message because you dropped me from Cc:...]

On 2008.04.02 22:06:48 -0400, Stephen Bannasch wrote:
> Thanks Björn,
> 
> At 5:17 PM +0200 4/2/08, Björn Steinbrink wrote:
> >On 2008.04.02 10:38:34 -0400, Stephen Bannasch wrote:
> > > 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.
> 
> Done
> 
> >Use filter-branch to change all git-svn-id lines in the log entries.
> 
> I've just started using git so please forgive the beginner questions.
> 
> What should I change the log entries to?
> 
> Here's what the log entries look like now:
> 
> $ git-filter-branch --msg-filter 'echo $GIT_COMMIT'
> ^MRewrite 89817efa5b290d375786a5af9a0dcc338df8a68c (1/13099)^MRewrite b090d1d40cba2c66a494d52e370317487d103484 (2/13099)^M

Ouch, that replaced your commit messages with the sha1 hashes... Should
have been something like:
git filter-branch --msg-filter 'sed "s,file:///....,http:///,"' -- --all

Björn

  reply	other threads:[~2008-04-05  0:23 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 [this message]
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=20080405002310.GB3101@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).