Class JGitEnvironmentRepository.JGitFactory
java.lang.Object
org.springframework.cloud.config.server.environment.JGitEnvironmentRepository.JGitFactory
- Enclosing class:
- JGitEnvironmentRepository
Wraps the static method calls to
Git
and
CloneCommand
allowing for easier unit testing.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.jgit.api.CloneCommand
org.eclipse.jgit.api.Git
getGitByOpen
(File file)
-
Constructor Details
-
JGitFactory
public JGitFactory() -
JGitFactory
public JGitFactory(boolean cloneSubmodules)
-
-
Method Details
-
getGitByOpen
- Throws:
IOException
-
getCloneCommandByCloneRepository
public org.eclipse.jgit.api.CloneCommand getCloneCommandByCloneRepository()
-