Close the repo in CloneCommandTest

The test failed on Windows only

Change-Id: Ibff5308b33deb73570626a08a04e86ad8f418023
This commit is contained in:
Robin Rosenberg 2011-10-26 22:14:20 +02:00
parent 3a4fa52723
commit 96b801f02b
1 changed files with 1 additions and 0 deletions

View File

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