Browse Source

Close the repo in CloneCommandTest

The test failed on Windows only

Change-Id: Ibff5308b33deb73570626a08a04e86ad8f418023
stable-1.2
Robin Rosenberg 13 years ago
parent
commit
96b801f02b
  1. 1
      org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CloneCommandTest.java

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

@ -221,6 +221,7 @@ public class CloneCommandTest extends RepositoryTestCase {
command.setDirectory(directory); command.setDirectory(directory);
command.setURI("file://" + git.getRepository().getWorkTree().getPath()); command.setURI("file://" + git.getRepository().getWorkTree().getPath());
Git git2 = command.call(); Git git2 = command.call();
addRepoToClose(git2.getRepository());
assertNotNull(git2); assertNotNull(git2);
// clone again // clone again
command = Git.cloneRepository(); command = Git.cloneRepository();

Loading…
Cancel
Save