File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
opengrok-indexer/src/test/java/org/opengrok/indexer/index Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -568,20 +568,22 @@ void testHistoryBasedReindexVsProjectWithDiverseRepos(boolean useCvs) throws Exc
568
568
// Clone Git repository underneath the project.
569
569
String cloneUrl = Path .of (repository .getSourceRoot (), "git" ).toFile ().toURI ().toString ();
570
570
Path repositoryRootPath = Path .of (repository .getSourceRoot (), projectName , disabledGitRepoName );
571
- Git .cloneRepository ()
571
+ Git git = Git .cloneRepository ()
572
572
.setURI (cloneUrl )
573
573
.setDirectory (repositoryRootPath .toFile ())
574
574
.call ();
575
+ git .close ();
575
576
assertTrue (repositoryRootPath .toFile ().isDirectory ());
576
577
}
577
578
578
579
// Clone Git repository underneath the project and make a change there.
579
580
String cloneUrl = Path .of (repository .getSourceRoot (), "git" ).toFile ().toURI ().toString ();
580
581
Path repositoryRootPath = Path .of (repository .getSourceRoot (), projectName , "git" );
581
- Git .cloneRepository ()
582
+ Git git = Git .cloneRepository ()
582
583
.setURI (cloneUrl )
583
584
.setDirectory (repositoryRootPath .toFile ())
584
585
.call ();
586
+ git .close ();
585
587
assertTrue (repositoryRootPath .toFile ().isDirectory ());
586
588
changeGitRepository (repositoryRootPath .toFile ());
587
589
You can’t perform that action at this time.
0 commit comments