public class CartridgeGitRepository
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_GIT_PATH |
static java.lang.String |
DEFAULT_LOCAL_LOCATION |
Constructor and Description |
---|
CartridgeGitRepository(java.lang.String containerId) |
Modifier and Type | Method and Description |
---|---|
void |
cloneOrPull(java.lang.String repo,
org.eclipse.jgit.transport.CredentialsProvider credentials)
Clones or pulls the remote repository and returns the directory with the checkout
|
org.eclipse.jgit.api.Git |
getGit() |
java.io.File |
getLocalRepo() |
java.lang.String |
getRemoteName() |
void |
setRemoteName(java.lang.String remoteName) |
public static final java.lang.String DEFAULT_GIT_PATH
public static final java.lang.String DEFAULT_LOCAL_LOCATION
public CartridgeGitRepository(java.lang.String containerId)
public void cloneOrPull(java.lang.String repo, org.eclipse.jgit.transport.CredentialsProvider credentials) throws java.lang.Exception
java.lang.Exception
public java.io.File getLocalRepo()
public org.eclipse.jgit.api.Git getGit() throws java.io.IOException
java.io.IOException
public java.lang.String getRemoteName()
public void setRemoteName(java.lang.String remoteName)
Copyright © 2014 Red Hat. All Rights Reserved.