]> source.dussan.org Git - jgit.git/commitdiff
IndexDiffSubmoduleTest: Fix negative use count 19/89719/4
authorDavid Pursehouse <david.pursehouse@gmail.com>
Fri, 10 Feb 2017 10:48:52 +0000 (19:48 +0900)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Fri, 10 Feb 2017 10:48:52 +0000 (19:48 +0900)
submoduleStandalone is created by createWorkRepository() which adds
the created repository to the set of repositories to be closed in
the test teardown. It is therefore not necessary to explicitly close
it.

Change-Id: Ib6f525b644fdeaaf1934df39cc2d3583a0d883dc
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/IndexDiffSubmoduleTest.java

index 3259f622f37bbd13b4edd24b30efe7d11cd89897..0111b9411d4cfa60e6f47d2cd564480df898ddcc 100644 (file)
@@ -90,7 +90,6 @@ public class IndexDiffSubmoduleTest extends RepositoryTestCase {
                                .setPath("modules/submodule")
                                .setURI(submoduleStandalone.getDirectory().toURI().toString())
                                .call();
-               submoduleStandalone.close();
                submodule_trash = submodule_db.getWorkTree();
                addRepoToClose(submodule_db);
                writeTrashFile("fileInRoot", "root");