Re: host a git archive on an rsync server?

From: James Cloos
Date: Thu Dec 03 2009 - 02:07:53 EST


>>>>> "Dan" == Dan Carpenter <error27@xxxxxxxxx> 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@xxxxxxxxxxx> OpenPGP: 1024D/ED7DAEA6
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/