Re: Can I switch a git-svn clone from a file => http url?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux