# git-svn and --bare repositories

2 messages from 2009-07-22 to 2009-07-23. Participants: Aaron Gray, Eric Wong.
Thread: https://gitlist.dev/t/20199

## Aaron Gray, 2009-07-22 20:48

Subject: git-svn and --bare repositories
Message-ID: <F624E89E52304371B3CCFB737F9324DD@HPLAPTOP>
URL: https://gitlist.dev/e/F624E89E52304371B3CCFB737F9324DD%40HPLAPTOP

```
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 :)

but neither work.

As you may guess I am not really sure what I am doing here.

Many thanks in advance,

Aaron

```

## Eric Wong, 2009-07-23 08:07

Subject: Re: git-svn and --bare repositories
Message-ID: <20090723080712.GA32287@dcvr.yhbt.net>
URL: https://gitlist.dev/e/20090723080712.GA32287%40dcvr.yhbt.net
In-Reply-To: <F624E89E52304371B3CCFB737F9324DD@HPLAPTOP>

```
Aaron Gray <aaronngray.lists@googlemail.com> wrote:
> 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

```
