From 96b801f02b57c5be6356e172c214252d67e8ece7 Mon Sep 17 00:00:00 2001 From: Robin Rosenberg Date: Wed, 26 Oct 2011 22:14:20 +0200 Subject: [PATCH] Close the repo in CloneCommandTest The test failed on Windows only Change-Id: Ibff5308b33deb73570626a08a04e86ad8f418023 --- .../tst/org/eclipse/jgit/api/CloneCommandTest.java | 1 + 1 file changed, 1 insertion(+) 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 76aed91b6..f16fe83d6 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();