DirCacheCheckout did not unlock the index if e.g. an IOException occured
during checkout.
Bug: 350677
Change-Id: Ie9fa09f7a404080da7cdccafb9be3a8c845e4869
Signed-off-by: Jens Baumgart <jens.baumgart@sap.com>
* @throws IOException
*/
public boolean checkout() throws IOException {
+ try {
+ return doCheckout();
+ } finally {
+ dc.unlock();
+ }
+ }
+
+ private boolean doCheckout() throws CorruptObjectException, IOException,
+ MissingObjectException, IncorrectObjectTypeException,
+ CheckoutConflictException, IndexWriteException {
toBeDeleted.clear();
if (headCommitTree != null)
preScanTwoTrees();