]> source.dussan.org Git - jgit.git/commitdiff
Close the repo in CloneCommandTest 10/4410/1
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Wed, 26 Oct 2011 20:14:20 +0000 (22:14 +0200)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Wed, 26 Oct 2011 20:59:39 +0000 (22:59 +0200)
The test failed on Windows only

Change-Id: Ibff5308b33deb73570626a08a04e86ad8f418023

org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CloneCommandTest.java

index 76aed91b6d9342765cd21c8459b5444d37cd18d2..f16fe83d6a0e4e38edeaa25f4de5301182582889 100644 (file)
@@ -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();