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

Re: git-svn mirror in bare repo

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Aug 23, 2010, 15:05 UTC
Message-ID
<4C728E2C.8080003@drmicha.warpmail.net>
In-Reply-To
<20100823131348.GC12810@nibiru.local>
Enrico Weigelt venit, vidit, dixit 23.08.2010 15:13:
Show 12 quoted lines
> * Michael J Gruber <git@drmicha.warpmail.net> wrote:
>> Enrico Weigelt venit, vidit, dixit 23.08.2010 14:24:
>>>
>>> Hi folks,
>>>
>>> is it possible to use git-svn w/ an bare repository (eg. using
>>> an temporary workdir when necessary or directly creating tree
>>> and commit objects w/o going through workdir at all) ?
>>
>> No.
> 
> hmm, can it work with an external workdir ?

You can have the workdir anywhere you like by using the core.worktree setting. So, if you mind the size requirements you can put it onto some fast tempdir (tmpfs, say). In fact, if all you do is "git svn fetch" then git svn may not even notice a missing worktree (would have to try). "git svn rebase" does need a worktree.

Show 10 quoted lines
> 
>>> I'm running a dozen of mirrors (also from cvs), some from fairly
>>> large and I'd like to get rid of the working copies.
>>
>> Your only option is a different conversion tool. GSoC resulted in a lot
>> of code in this direction, but I'm not sure it can do without a workdir.
>> It is based on svndump
> 
> I guess that requires access to the raw repository (on the server),
> not just unprivileged svn client access, right ?

In fact, Ram's GSoC project started off with svnrdump which is now part of the subversion code base (i.e. in their trunk). It is basically "svndump remote", i.e. a client outputting svn dump format.

Michael
P.S.: We usually keep cc's when replying here.
Previous: Enrico WeigeltNext: Wesley J. Landaker
Message 4 of 5 in “git-svn mirror in bare repo”
  1. Enrico WeigeltAug 23, 2010
  2. Michael J GruberAug 23, 2010
  3. Enrico WeigeltAug 23, 2010
  4. Michael J GruberAug 23, 2010
  5. Wesley J. LandakerAug 28, 2010

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.