Skip to content

Commit 89e4f2c

Browse files
author
Vladimir Kotal
committed
use toUri()
1 parent 3a664a5 commit 89e4f2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ private String addSubmodule(String submoduleName) throws Exception {
806806
.build();
807807
try (Git git = new Git(mainRepo)) {
808808
git.submoduleAdd().
809-
setURI("file:///" + newRepoFile).
809+
setURI(newRepoFile.toPath().toUri().toString()).
810810
setPath(submoduleName).
811811
call();
812812
}

0 commit comments

Comments
 (0)