diff options
Diffstat (limited to 'org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CloneCommandTest.java')
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CloneCommandTest.java | 3 |
1 files changed, 3 insertions, 0 deletions
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 ece1b324b0..ea07beed70 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 @@ -146,6 +146,7 @@ public class CloneCommandTest extends RepositoryTestCase { command.setGitDir(new File(directory, ".git")); command.setURI(fileUri()); Git git2 = command.call(); + addRepoToClose(git2.getRepository()); assertEquals(directory, git2.getRepository().getWorkTree()); assertEquals(new File(directory, ".git"), git2.getRepository() .getDirectory()); @@ -161,6 +162,7 @@ public class CloneCommandTest extends RepositoryTestCase { command.setGitDir(gDir); command.setURI(fileUri()); Git git2 = command.call(); + addRepoToClose(git2.getRepository()); assertEquals(directory, git2.getRepository().getWorkTree()); assertEquals(gDir, git2.getRepository() .getDirectory()); @@ -177,6 +179,7 @@ public class CloneCommandTest extends RepositoryTestCase { command.setGitDir(gDir); command.setURI(fileUri()); Git git2 = command.call(); + addRepoToClose(git2.getRepository()); try { assertNull(null, git2.getRepository().getWorkTree()); fail("Expected NoWorkTreeException"); |