Class 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 Detail

      • directory

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

      • CloneGitRepo

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