Skip to content

Commit 8c5dcc6

Browse files
author
Vladimir Kotal
committed
change clone destination directory
1 parent c91f157 commit 8c5dcc6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,7 @@ public void testGetHistoryInBranch() throws Exception {
214214
// Clone the test repository and create new branch there.
215215
// Clone under source root to avoid problems with prohibited symlinks.
216216
File root = new File(repository.getSourceRoot(), "git");
217-
File localPath = new File(repository.getSourceRoot(), "gitCloneTestDetermineBranch");
218-
GitRepository gitrepo = (GitRepository) RepositoryFactory.getRepository(root);
219-
String branch;
217+
File localPath = new File(repository.getSourceRoot(), "testGetHistoryInBranch");
220218
String cloneUrl = root.toURI().toString();
221219
try (Git gitClone = Git.cloneRepository()
222220
.setURI(cloneUrl)
@@ -227,7 +225,7 @@ public void testGetHistoryInBranch() throws Exception {
227225
assertNotNull(ref);
228226

229227
File cloneRoot = gitClone.getRepository().getWorkTree();
230-
gitrepo = (GitRepository) RepositoryFactory.getRepository(cloneRoot);
228+
GitRepository gitrepo = (GitRepository) RepositoryFactory.getRepository(cloneRoot);
231229

232230
History history = gitrepo.getHistory(cloneRoot);
233231
assertNotNull(history);

0 commit comments

Comments
 (0)