Remove unused index files when WalkFetchConnection closes
commit4d98e510f2a3ae24c0110b9c08edf7c75f9eac32
authorShawn O. Pearce <spearce@spearce.org>
Sun, 29 Jun 2008 07:59:11 +0000 (29 03:59 -0400)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Mon, 30 Jun 2008 22:46:21 +0000 (1 00:46 +0200)
tree59d2a7929554c06abf91fbbbecf744d6f32021c6
parent6614924d5c180ae8cdb261f29040bb437b55dab2
Remove unused index files when WalkFetchConnection closes

If we downloaded an index but then didn't download the corresponding
pack file we never deleted the index from disk.  We should clear any
unused indexes that are left when we terminate the connection.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit/src/org/spearce/jgit/transport/WalkFetchConnection.java