]> source.dussan.org Git - jgit.git/commit
RefUpdateTest: Don't call createBareRepository in try-with-resource 23/89723/2
authorDavid Pursehouse <david.pursehouse@gmail.com>
Fri, 27 Jan 2017 10:33:20 +0000 (19:33 +0900)
committerMatthias Sohn <matthias.sohn@sap.com>
Sat, 28 Jan 2017 18:16:48 +0000 (19:16 +0100)
commitac6353e9e5fbcf0c1a298990505674077ff09a22
treecd8a4f2f7ac8c8e7b7901ab49c03e4ed15c0bdf0
parent25b14084c9e0ff0cc9332c49feb2aac01cab6400
RefUpdateTest: Don't call createBareRepository in try-with-resource

createBareRepository adds the created repo to the list of repos to be
closed in the superclass's teardown. Wrapping it in try-with-resource
causes it to be closed too many times, resulting in a corrupt use
count.

Change-Id: I4c70630bf6008544324dda453deb141f4f89472c
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/RefUpdateTest.java