Class CloneGitRepo

java.lang.Object
org.jclouds.scriptbuilder.statements.git.CloneGitRepo
All Implemented Interfaces:
Statement

public class CloneGitRepo extends Object implements Statement
Clones a gitRepoAndRef into a newly created directory, creates remote-tracking branches for each branch in the cloned gitRepoAndRef (visible using git branch -r), and creates and checks out an initial branch that is forked from the cloned gitRepoAndRef's currently active branch. PWD is set to the directory being checked out.
  • Field Details

    • gitRepoAndRef

      protected final GitRepoAndRef gitRepoAndRef
    • directory

      protected final com.google.common.base.Optional<String> directory
  • Constructor Details

    • CloneGitRepo

      protected CloneGitRepo(GitRepoAndRef gitRepoAndRef, com.google.common.base.Optional<String> directory)
  • Method Details