ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] I: ssh git.alt git-clone /archive
@ 2007-11-10 14:34 Dmitry V. Levin
  2007-11-10 20:57 ` Kirill A. Shutemov
  0 siblings, 1 reply; 5+ messages in thread
From: Dmitry V. Levin @ 2007-11-10 14:34 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 393 bytes --]

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-объектов.
Это, конечно, быстрее, а также экономит вашу дисковую квоту.


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [devel] I: ssh git.alt git-clone /archive
  2007-11-10 14:34 [devel] I: ssh git.alt git-clone /archive Dmitry V. Levin
@ 2007-11-10 20:57 ` Kirill A. Shutemov
  2007-11-10 21:03   ` Dmitry V. Levin
  0 siblings, 1 reply; 5+ messages in thread
From: Kirill A. Shutemov @ 2007-11-10 20:57 UTC (permalink / raw)
  To: ALT Linux Team development discussions

[-- Attachment #1: Type: text/plain, Size: 867 bytes --]

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 ?

-- 
Regards,  Kirill A. Shutemov
 + Belarus, Minsk
 + Velesys LLC, http://www.velesys.com/
 + ALT Linux Team, http://www.altlinux.com/

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [devel] I: ssh git.alt git-clone /archive
  2007-11-10 20:57 ` Kirill A. Shutemov
@ 2007-11-10 21:03   ` Dmitry V. Levin
  2007-11-11 11:27     ` Денис Смирнов
  0 siblings, 1 reply; 5+ messages in thread
From: Dmitry V. Levin @ 2007-11-10 21:03 UTC (permalink / raw)
  To: ALT Linux Team development discussions

[-- Attachment #1: Type: text/plain, Size: 1325 bytes --]

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

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [devel] I: ssh git.alt git-clone /archive
  2007-11-10 21:03   ` Dmitry V. Levin
@ 2007-11-11 11:27     ` Денис Смирнов
  2007-11-11 11:54       ` Dmitry V. Levin
  0 siblings, 1 reply; 5+ messages in thread
From: Денис Смирнов @ 2007-11-11 11:27 UTC (permalink / raw)
  To: ALT Linux Team development discussions

[-- Attachment #1: Type: text/plain, Size: 1233 bytes --]

On Sun, Nov 11, 2007 at 12:03:09AM +0300, Dmitry V. Levin wrote:

DVL> Согласно git-clone(1),
DVL> "--local, -l
DVL>    When the repository to clone from is on a local machine, this flag
DVL>    bypasses normal "git aware" transport mechanism and clones the
DVL>    repository by making a copy of HEAD and everything under objects
DVL>    and refs directories.  The files under .git/objects/ directory are
DVL>    hardlinked to save space when possible.  This is now the default when
DVL>    the source repository is specified with /path/to/repo syntax"
DVL> Т.е. это просто поведение git clone по умолчанию.
DVL> А вот --reference использовать нельзя, поскольку содержимое репозитория
DVL> источника может в любой момент измениться или вообще исчезнуть (особенно
DVL> когда клонируется репозиторий из /people).

Я правильно понимаю что первый же git repack на стороне откуда делаем
git-clone, и у нас останется файлик, который с точки зрения дисковой квоты
принадлежит одному, а на самом деле уже другому?

-- 
С уважением, Денис

http://freesource.info
----------------------------------------------------------------------------
ПАРАДОКС СИЛЬВЕРМАНА
 Если закон Мерфи может не сработать, он срабатывает.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [devel] I: ssh git.alt git-clone /archive
  2007-11-11 11:27     ` Денис Смирнов
@ 2007-11-11 11:54       ` Dmitry V. Levin
  0 siblings, 0 replies; 5+ messages in thread
From: Dmitry V. Levin @ 2007-11-11 11:54 UTC (permalink / raw)
  To: ALT Linux Team development discussions

[-- Attachment #1: Type: text/plain, Size: 1153 bytes --]

On Sun, Nov 11, 2007 at 02:27:01PM +0300, Денис Смирнов wrote:
> On Sun, Nov 11, 2007 at 12:03:09AM +0300, Dmitry V. Levin wrote:
> 
> DVL> Согласно git-clone(1),
> DVL> "--local, -l
> DVL>    When the repository to clone from is on a local machine, this flag
> DVL>    bypasses normal "git aware" transport mechanism and clones the
> DVL>    repository by making a copy of HEAD and everything under objects
> DVL>    and refs directories.  The files under .git/objects/ directory are
> DVL>    hardlinked to save space when possible.  This is now the default when
> DVL>    the source repository is specified with /path/to/repo syntax"
> DVL> Т.е. это просто поведение git clone по умолчанию.
> DVL> А вот --reference использовать нельзя, поскольку содержимое репозитория
> DVL> источника может в любой момент измениться или вообще исчезнуть (особенно
> DVL> когда клонируется репозиторий из /people).
> 
> Я правильно понимаю что первый же git repack на стороне откуда делаем
> git-clone, и у нас останется файлик, который с точки зрения дисковой квоты
> принадлежит одному, а на самом деле уже другому?

Правильно.


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-11-11 11:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-10 14:34 [devel] I: ssh git.alt git-clone /archive Dmitry V. Levin
2007-11-10 20:57 ` Kirill A. Shutemov
2007-11-10 21:03   ` Dmitry V. Levin
2007-11-11 11:27     ` Денис Смирнов
2007-11-11 11:54       ` Dmitry V. Levin

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git