File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
opengrok-indexer/src/test/java/org/opengrok/indexer/history Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -816,8 +816,9 @@ private String addSubmodule(String submoduleName) throws Exception {
816
816
817
817
@ Test
818
818
void testSubmodule () throws Exception {
819
- String submoduleOriginPath = addSubmodule ("submodule" );
820
- Path submodulePath = Paths .get (repository .getSourceRoot (), "git" , "submodule" );
819
+ String submoduleName = "submodule" ;
820
+ String submoduleOriginPath = addSubmodule (submoduleName );
821
+ Path submodulePath = Paths .get (repository .getSourceRoot (), "git" , submoduleName );
821
822
822
823
Repository subRepo = RepositoryFactory .getRepository (submodulePath .toFile ());
823
824
assertNotNull (subRepo );
@@ -829,7 +830,7 @@ void testSubmodule() throws Exception {
829
830
assertTrue (gitFile .isFile ());
830
831
try (Writer writer = new FileWriter (gitFile )) {
831
832
writer .write (Constants .GITDIR + ".." + File .separator + Constants .DOT_GIT +
832
- File .separator + Constants .MODULES + File .separator + "submodule" );
833
+ File .separator + Constants .MODULES + File .separator + submoduleName );
833
834
}
834
835
subRepo = RepositoryFactory .getRepository (submodulePath .toFile ());
835
836
assertNotNull (subRepo );
You can’t perform that action at this time.
0 commit comments