git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
SBStephen Bannasch <stephen.bannasch@deanbrook.org>
Date
Apr 3, 2008, 02:06 UTC
Message-ID
<p06240802c419e22d78a7@[63.138.152.125]>
In-Reply-To
<20080402151721.GA31738@atjola.homenet>
Thanks Björn,
At 5:17 PM +0200 4/2/08, Björn Steinbrink wrote:
Show 12 quoted lines
>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

Do you mean each one should just be re-written to a new SHA1 keys? If so how should I generate new SHA1 keys?
Show 10 quoted lines
>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
>--
>To unsubscribe from this list: send the line "unsubscribe git" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous: Björn SteinbrinkNext: Björn Steinbrink
Message 4 of 7 in “Can I switch a git-svn clone from a file => http url?”
  1. Stephen BannaschApr 2, 2008
  2. Johannes SchindelinApr 2, 2008
  3. Björn SteinbrinkApr 2, 2008
  4. Stephen BannaschApr 3, 2008
  5. Björn SteinbrinkApr 5, 2008
  6. Teemu LikonenApr 3, 2008
  7. Stephen BannaschApr 4, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.