public class CartridgeGitRepository extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_GIT_PATH |
static String |
DEFAULT_LOCAL_LOCATION |
Constructor and Description |
---|
CartridgeGitRepository(String containerId) |
Modifier and Type | Method and Description |
---|---|
void |
cloneOrPull(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() |
File |
getLocalRepo() |
String |
getRemoteName() |
void |
setRemoteName(String remoteName) |
public static final String DEFAULT_GIT_PATH
public static final String DEFAULT_LOCAL_LOCATION
public CartridgeGitRepository(String containerId)
public void cloneOrPull(String repo, org.eclipse.jgit.transport.CredentialsProvider credentials) throws Exception
Exception
public File getLocalRepo()
public org.eclipse.jgit.api.Git getGit() throws IOException
IOException
public String getRemoteName()
public void setRemoteName(String remoteName)
Copyright © 2011–2014 Red Hat. All rights reserved.