From: Robin Rosenberg Date: Wed, 26 Oct 2011 20:14:20 +0000 (+0200) Subject: Close the repo in CloneCommandTest X-Git-Tag: v1.2.0.201112221803-r~58^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=96b801f02b57c5be6356e172c214252d67e8ece7;p=jgit.git Close the repo in CloneCommandTest The test failed on Windows only Change-Id: Ibff5308b33deb73570626a08a04e86ad8f418023 --- diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CloneCommandTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CloneCommandTest.java index 76aed91b6d..f16fe83d6a 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CloneCommandTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CloneCommandTest.java @@ -221,6 +221,7 @@ public class CloneCommandTest extends RepositoryTestCase { command.setDirectory(directory); command.setURI("file://" + git.getRepository().getWorkTree().getPath()); Git git2 = command.call(); + addRepoToClose(git2.getRepository()); assertNotNull(git2); // clone again command = Git.cloneRepository();