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 4, 2008, 00:49 UTC
Message-ID
<p06240804c41b28150d6a@[63.138.152.125]>
In-Reply-To
<200804030905.46425.tlikonen@iki.fi>
At 9:05 AM +0300 4/3/08, Teemu Likonen wrote:
Show 23 quoted lines
>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.
Previous: Teemu Likonen
Message 7 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.