Re: [PATCH] git-clone.txt: Adjust note to --shared for new pruning behavior of git-gc
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Apr 4, 2008, 06:49 UTC
- Message-ID
- <m3prt6t8sn.fsf@localhost.localdomain>
- In-Reply-To
- <alpine.LSU.1.00.0804032200310.4008@racer.site>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 9 quoted lines
> On Thu, 3 Apr 2008, Brandon Casey wrote: > > But what I was really trying to point out in the documentation changes > > was that now _other_ commands such as git-commit are also unsafe since > > they call 'git-gc --auto' and could cause loose unreferenced objects to > > be deleted. So it is not enough to just avoid calling git-gc when > > dealing with a --shared repository. > > Right. Hmm. I missed that completely when I thought about prune > --expire.
I think that if you are using repository from which other repos borrow objects via alternates, it is a good idea to turn off automatic repacking with "git gc --auto" by setting gc.auto to 0 (or, hopefully, "never" or "false").
-- Jakub Narebski Poland ShadeHawk on #git