|
|
@ -223,9 +223,9 @@ public class CommitCommandTest extends RepositoryTestCase { |
|
|
|
assertEquals(uri, generator.getModulesUrl()); |
|
|
|
assertEquals(uri, generator.getModulesUrl()); |
|
|
|
assertEquals(path, generator.getModulesPath()); |
|
|
|
assertEquals(path, generator.getModulesPath()); |
|
|
|
assertEquals(uri, generator.getConfigUrl()); |
|
|
|
assertEquals(uri, generator.getConfigUrl()); |
|
|
|
Repository subModRepo = generator.getRepository(); |
|
|
|
try (Repository subModRepo = generator.getRepository()) { |
|
|
|
assertNotNull(subModRepo); |
|
|
|
assertNotNull(subModRepo); |
|
|
|
subModRepo.close(); |
|
|
|
} |
|
|
|
assertEquals(commit, repo.resolve(Constants.HEAD)); |
|
|
|
assertEquals(commit, repo.resolve(Constants.HEAD)); |
|
|
|
|
|
|
|
|
|
|
|
RevCommit submoduleCommit = git.commit().setMessage("submodule add") |
|
|
|
RevCommit submoduleCommit = git.commit().setMessage("submodule add") |
|
|
@ -273,9 +273,9 @@ public class CommitCommandTest extends RepositoryTestCase { |
|
|
|
assertEquals(uri, generator.getModulesUrl()); |
|
|
|
assertEquals(uri, generator.getModulesUrl()); |
|
|
|
assertEquals(path, generator.getModulesPath()); |
|
|
|
assertEquals(path, generator.getModulesPath()); |
|
|
|
assertEquals(uri, generator.getConfigUrl()); |
|
|
|
assertEquals(uri, generator.getConfigUrl()); |
|
|
|
Repository subModRepo = generator.getRepository(); |
|
|
|
try (Repository subModRepo = generator.getRepository()) { |
|
|
|
assertNotNull(subModRepo); |
|
|
|
assertNotNull(subModRepo); |
|
|
|
subModRepo.close(); |
|
|
|
} |
|
|
|
assertEquals(commit2, repo.resolve(Constants.HEAD)); |
|
|
|
assertEquals(commit2, repo.resolve(Constants.HEAD)); |
|
|
|
|
|
|
|
|
|
|
|
RevCommit submoduleAddCommit = git.commit().setMessage("submodule add") |
|
|
|
RevCommit submoduleAddCommit = git.commit().setMessage("submodule add") |
|
|
|