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 to Git and CloneCommand allowing for easier unit testing.
  • Constructor Details

    • JGitFactory

      public JGitFactory()
    • JGitFactory

      public JGitFactory(boolean cloneSubmodules)
  • Method Details

    • getGitByOpen

      public org.eclipse.jgit.api.Git getGitByOpen(File file) throws IOException
      Throws:
      IOException
    • getCloneCommandByCloneRepository

      public org.eclipse.jgit.api.CloneCommand getCloneCommandByCloneRepository()