Skip pack-*.idx which has no corresponding pack-*.pack file
commitc69e1ab3e6b9d38bcd7b30f92043ea76d005c6f3
authorShawn O. Pearce <spearce@spearce.org>
Sun, 18 May 2008 19:39:27 +0000 (18 15:39 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 18 May 2008 19:39:51 +0000 (18 15:39 -0400)
tree67a32882f94994d68bdc33f45f3337efa5332b32
parentc8aa19f39142c31d98492696329bcc13d50c04c7
Skip pack-*.idx which has no corresponding pack-*.pack file

The HTTP transport in C Git will download a pack-*.idx file from the
remote to see what is contained in the pack, but it does not get the
matching pack-*.pack if the object(s) are already available locally.
As these are written directly to the .git/objects/pack directory we
must skip over the useless index files when setting up our list of
available PackFile instances.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.jgit/src/org/spearce/jgit/lib/Repository.java