Method fails to close stream
commit14896978943214fd3287bdb957434e5c8cd57bc7
authorYann Simon <yann.simon.fr@gmail.com>
Thu, 19 Mar 2009 09:16:43 +0000 (19 10:16 +0100)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 19 Mar 2009 16:14:47 +0000 (19 09:14 -0700)
tree365d8fe66c896e39a099fac16fd83e679c91c9d5
parentc50f8e6a5ec6712dbd3fbb3da49d291cb43c1477
Method fails to close stream

Use a finally block instead to ensure that the stream is closed.

Throw any IOException if the alternates file cannot be read; it is
a valid problem that indicates the repository cannot be accessed.

[sp: Modified commit message to more accurately describe the delta]

Signed-off-by: Yann Simon <yann.simon.fr@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.jgit/src/org/spearce/jgit/lib/Repository.java