Git development
 help / color / mirror / Atom feed
From: Eric Wong <normalperson@yhbt.net>
To: Aaron Gray <aaronngray.lists@googlemail.com>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: git-svn and --bare repositories
Date: Thu, 23 Jul 2009 01:07:12 -0700	[thread overview]
Message-ID: <20090723080712.GA32287@dcvr.yhbt.net> (raw)
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

      reply	other threads:[~2009-07-23  8:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-22 20:48 git-svn and --bare repositories Aaron Gray
2009-07-23  8:07 ` Eric Wong [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090723080712.GA32287@dcvr.yhbt.net \
    --to=normalperson@yhbt.net \
    --cc=aaronngray.lists@googlemail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox