]> source.dussan.org Git - jgit.git/commit
Unconditionally close repository in unregisterAndCloseRepository 63/81563/2
authorSaša Živkov <sasa.zivkov@sap.com>
Wed, 21 Sep 2016 09:32:36 +0000 (11:32 +0200)
committerSaša Živkov <sasa.zivkov@sap.com>
Wed, 21 Sep 2016 11:22:51 +0000 (13:22 +0200)
commitb7df7d1fd38d6eba77514b0cd4154c530dfa1098
tree0c9a20dea5755bda477bbb928b46244b5fcb2e3a
parentaadbb158e10ccc3194c4e7f2c1b3885b3c40571c
Unconditionally close repository in unregisterAndCloseRepository

Repository.close() method is used when reference counting and expiration
needs to be honored. The RepositoryCache.unregisterAndCloseRepository
method should close the repository unconditionally. This is also indicated
from its javadoc.

Change-Id: I19392d1eaa17f27ae44b55eea49dcff05a52f298
org.eclipse.jgit/src/org/eclipse/jgit/lib/RepositoryCache.java