mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: James Cloos <cloos@jhcloos.com>
To: Dan Carpenter <error27@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: host a git archive on an rsync server?
Date: Thu, 03 Dec 2009 01:44:43 -0500	[thread overview]
Message-ID: <m3fx7s8sjw.fsf@lugabout.jhcloos.org> (raw)
In-Reply-To: <20091130082032.GS10640@bicker> (Dan Carpenter's message of "Mon, 30 Nov 2009 10:20:32 +0200")

>>>>> "Dan" == Dan Carpenter <error27@gmail.com> writes:

Dan> Could someone do a git clone and put it on an rsync server for me?

You can rsync the bare repo from kernel.org at:

rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git

After you get the rsync of the bare tree, do:

git clone --reference linux-2.6.git git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git

then you can delete the linux-2.6/.git/objects/info/alternates file and
copy the linux-2.6.git/objects/ tree to linux-2.6/.git/objects/.

(Making the separate clone and moving over the referenced objects is the
best way to ensure that the resulting repo has the same settings as a
direct clone would have.  You may want to run a git gc after all of that
to pack any loose objects from the rsync'ed repo.

-JimC
-- 
James Cloos <cloos@jhcloos.com>         OpenPGP: 1024D/ED7DAEA6

      parent reply	other threads:[~2009-12-03  7:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-30  8:20 Dan Carpenter
2009-11-30 12:52 ` Avi Kivity
2009-12-03  6:44 ` James Cloos [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=m3fx7s8sjw.fsf@lugabout.jhcloos.org \
    --to=cloos@jhcloos.com \
    --cc=error27@gmail.com \
    --cc=linux-kernel@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

Powered by JetHome