sha1_file: avoid re-preparing duplicate packs
commit86f7780c0b77b3c162f85d499189f9d1f0b296df
authorJeff King <peff@peff.net>
Fri, 2 Jun 2006 16:49:32 +0000 (2 12:49 -0400)
committerJunio C Hamano <junkio@cox.net>
Fri, 2 Jun 2006 18:09:44 +0000 (2 11:09 -0700)
treea6199829b146d7f5c45dbf7621216cf31495e87c
parent637cdd9d1d997fca34a1fc668fed1311e30fe95f
sha1_file: avoid re-preparing duplicate packs

When adding packs, skip the pack if we already have it in the packed_git
list. This might happen if we are re-preparing our packs because of a
missing object.

Signed-off-by: Junio C Hamano <junkio@cox.net>
sha1_file.c