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.- Author:
- Dave Syer, Roy Clarkson, Marcos Barbero, Daniel Lavoie, Ryan Lynch, Gareth Clay, ChaoDong Xi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.jgit.api.CloneCommandorg.eclipse.jgit.api.GitgetGitByOpen(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()
-