Skip to content

Commit 88f6365

Browse files
author
Vladimir Kotal
committed
delete clone destination directory before cloning
1 parent 6907886 commit 88f6365

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

opengrok-indexer/src/test/java/org/opengrok/indexer/history/GitRepositoryTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ public void testDetermineParent() throws Exception {
203203
// Next, clone the repository and create new origin there.
204204
// Clone under source root to avoid problems with prohibited symlinks.
205205
File localPath = new File(repository.getSourceRoot(), "gitCloneTestDetermineBranch");
206+
assertTrue(localPath.delete());
206207
String cloneUrl = root.toURI().toString();
207208
try (Git gitClone = Git.cloneRepository()
208209
.setURI(cloneUrl)

0 commit comments

Comments
 (0)