Class JGitEnvironmentRepository.JGitFactory
- java.lang.Object
-
- org.springframework.cloud.config.server.environment.JGitEnvironmentRepository.JGitFactory
-
- Enclosing class:
- JGitEnvironmentRepository
public static class JGitEnvironmentRepository.JGitFactory extends Object
Wraps the static method calls toGitandCloneCommandallowing for easier unit testing.
-
-
Constructor Summary
Constructors Constructor Description JGitFactory()JGitFactory(boolean cloneSubmodules)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.jgit.api.CloneCommandgetCloneCommandByCloneRepository()org.eclipse.jgit.api.GitgetGitByOpen(File file)
-
-
-
Method Detail
-
getGitByOpen
public org.eclipse.jgit.api.Git getGitByOpen(File file) throws IOException
- Throws:
IOException
-
getCloneCommandByCloneRepository
public org.eclipse.jgit.api.CloneCommand getCloneCommandByCloneRepository()
-
-