File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
opengrok-indexer/src/test/java/org/opengrok/indexer/history Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -214,9 +214,7 @@ public void testGetHistoryInBranch() throws Exception {
214
214
// Clone the test repository and create new branch there.
215
215
// Clone under source root to avoid problems with prohibited symlinks.
216
216
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" );
220
218
String cloneUrl = root .toURI ().toString ();
221
219
try (Git gitClone = Git .cloneRepository ()
222
220
.setURI (cloneUrl )
@@ -227,7 +225,7 @@ public void testGetHistoryInBranch() throws Exception {
227
225
assertNotNull (ref );
228
226
229
227
File cloneRoot = gitClone .getRepository ().getWorkTree ();
230
- gitrepo = (GitRepository ) RepositoryFactory .getRepository (cloneRoot );
228
+ GitRepository gitrepo = (GitRepository ) RepositoryFactory .getRepository (cloneRoot );
231
229
232
230
History history = gitrepo .getHistory (cloneRoot );
233
231
assertNotNull (history );
You can’t perform that action at this time.
0 commit comments