Merge "Close the repo in CloneCommandTest"
This commit is contained in:
commit
b42293c81d
|
@ -221,6 +221,7 @@ public void testCloneRepositoryWhenDestinationDirectoryExistsAndIsNotEmpty()
|
||||||
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…
Reference in New Issue