Merge "Close the repo in CloneCommandTest"

This commit is contained in:
Christian Halstrick 2011-10-27 08:57:06 -04:00 committed by Code Review
commit b42293c81d
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();