git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: "Wesley J. Landaker" <wjl@icecavern.net>
To: git@vger.kernel.org, weigelt@metux.de
Subject: Re: git-svn mirror in bare repo
Date: Sat, 28 Aug 2010 09:45:14 -0700	[thread overview]
Message-ID: <4C793D1A.8050200@icecavern.net> (raw)
In-Reply-To: <20100823122425.GB12810@nibiru.local>

On 08/23/2010 05:24 AM, Enrico Weigelt wrote:
> 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) ?
> 
> 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.

When I have a large repository with git-svn that I only occasionally
want to use the working copy of it, here is what I do:

1) git svn clone the SVN repository normally
2) Create an "empty" branch with no files ("git checkout --orphan")

When I want to update SVN, I do:

  git checkout trunk
  git svn rebase
  git checkout empty

When I want to push something to SVN I do:

  git checkout trunk
  git svn dcommit
  git checkout empty

This makes it work sort of like a bare repository, but it still works
with git-svn. I use this when I have a bunch of SVN repositories I need
to be able to work with quickly at any time, but I don't want to waste
the disk space having all of their working copies checked out
simultaneously.

      parent reply	other threads:[~2010-08-28 16:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-23 12:24 git-svn mirror in bare repo Enrico Weigelt
2010-08-23 12:58 ` Michael J Gruber
2010-08-23 13:13   ` Enrico Weigelt
2010-08-23 15:05     ` Michael J Gruber
2010-08-28 16:45 ` Wesley J. Landaker [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

  List information: http://vger.kernel.org/majordomo-info.html

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

  git send-email \
    --in-reply-to=4C793D1A.8050200@icecavern.net \
    --to=wjl@icecavern.net \
    --cc=git@vger.kernel.org \
    --cc=weigelt@metux.de \
    /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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).