Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Re: time to update with new packs

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:07

Tony Luck [off-list ref] writes:
1) Link the new pack files from Linus' objects/pack directory
to my objects/pack directory.

2) $ GIT_DIR=. git prune-packed # in my directory

3) $ GIT_DIR=. git update-server-info # ditto
When everybody uses more recent clients, you could say
"/pub/scm/.../torvalds/linux-2.6.git/objects" in your
objects/info/alternates file and not worry about step (1).  git
native transport has known about the alternate mechanism since
the inception.  The alternate mechanism support in "git fetch"
and "git clone" for rsync and http transports is a relatively
recent addition (appeared just before 0.99.7).

So (1) is not necessary for git native transport once you have
"alternate" file, but for other transports (1) is probably still
helpful at this point.

Also, enabling hooks/post-update in your public repository would
save you from worrying about (3), provided if the only way you
update it is by pushing into it, which I think is what usually
people are doing.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help