Skip to content

Commit 556b17c

Browse files
author
Vladimir Kotal
committed
simplify
1 parent 9930d4c commit 556b17c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -805,8 +805,8 @@ private String addSubmodule(String submoduleName) throws Exception {
805805
setGitDir(Paths.get(repository.getSourceRoot(), "git", ".git").toFile())
806806
.build();
807807
try (Git git = new Git(mainRepo)) {
808-
org.eclipse.jgit.lib.Repository subRepoInit = git.submoduleAdd().
809-
setURI("file:///" + newRepoFile.toString()).
808+
git.submoduleAdd().
809+
setURI("file:///" + newRepoFile).
810810
setPath(submoduleName).
811811
call();
812812
}

0 commit comments

Comments
 (0)