Re: Problem with pack

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Nicolas Pitre
Date: Sunday, August 27, 2006 - 12:26 pm

On Sun, 27 Aug 2006, Linus Torvalds wrote:


We definitely should do it with -d.


There really is an advantage.  Given that the absence of -d leaves old 
objects/packs around, there is a greater chance for still finding an 
early copy of the bad object.


But -d would definitely delete old packs that could have had a non 
corrupted copy of the desired object.


I think that git-pack-object should grow another flag: --verify-src or 
something.  That flag would force the verification of the pack checksum 
for any pack used for the repack operation.  Then it should be used 
anytime -d is provided to git-repack.  When -d is not provided then we 
can skip that --verify-src security measure since nothing gets deleted 
and therefore no risk of loosing a good object over a corrupted one 
would happen.


Nicolas
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Problem with pack, Sergio Callegari, (Sun Aug 27, 10:45 am)
Re: Problem with pack, Linus Torvalds, (Sun Aug 27, 11:27 am)
Re: Problem with pack, Nicolas Pitre, (Sun Aug 27, 12:26 pm)
Re: Problem with pack, Junio C Hamano, (Sun Aug 27, 2:55 pm)