On Sat, Nov 10, 2007 at 10:57:16PM +0200, Kirill A. Shutemov wrote: > On [Sat, 10.11.2007 17:34], Dmitry V. Levin wrote: > > Hi, > > > > Теперь можно делать внутреннее клонирование репозиториев на git.alt > > быстрее и дешевле, например, > > ssh git.alt git-clone /archive/v/vitmp > > вместо > > ssh git.alt git-clone git://git.altlinux.org/archive/v/vitmp > > > > Первый вариант использует локальное клонирование, т.е. создаёт hardlink'и > > на файлы git-объектов. > > Это, конечно, быстрее, а также экономит вашу дисковую квоту. > > Зачем hardlink'и? Может лучше git clone --reference ? Согласно git-clone(1), "--local, -l When the repository to clone from is on a local machine, this flag bypasses normal "git aware" transport mechanism and clones the repository by making a copy of HEAD and everything under objects and refs directories. The files under .git/objects/ directory are hardlinked to save space when possible. This is now the default when the source repository is specified with /path/to/repo syntax" Т.е. это просто поведение git clone по умолчанию. А вот --reference использовать нельзя, поскольку содержимое репозитория источника может в любой момент измениться или вообще исчезнуть (особенно когда клонируется репозиторий из /people). -- ldv