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

Re: git-svn and --bare repositories

From
EWEric Wong <normalperson@yhbt.net>
Date
Jul 23, 2009, 08:07 UTC
Message-ID
<20090723080712.GA32287@dcvr.yhbt.net>
In-Reply-To
<F624E89E52304371B3CCFB737F9324DD@HPLAPTOP>
Aaron Gray <aaronngray.lists@googlemail.com> wrote:
Show 12 quoted lines
> How do I do a git svn fetch to a bare test.git repository created with :-
>
>    git --git-dir test.git --bare init --shared=true
>
> I have tried :-
>
>   git --git-dir test.git svn fetch http://test.org/git/test
>
> and
>
>   git --git-dir test.git/svn svn fetch http://test.org/git/test     ///  
> fictious address :)
Hi Aaron,

You need to do "git svn init $URL" from "git svn fetch" (the latter does not take URL arguments)

   git --git-dir test.git --bare init --shared=true
   git --git-dir test.git svn init $options $URL
   git --git-dir test.git svn fetch

I haven't used bare repositories much with git svn, but apparently it still works fine.

On a side note, "--git-dir $foo" really clutters up the command-line for me, I guess I'm old-fashioned and prefer using the GIT_DIR environment variable.

-- 
Eric Wong
Previous: Aaron Gray
Message 2 of 2 in “git-svn and --bare repositories”
  1. Aaron GrayJul 22, 2009
  2. Eric WongJul 23, 2009

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.