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.
public com.google.common.base.Optional<String> getDirectory()
The name of a new directory to clone into. The "humanish" part of the
source gitRepoAndRef is used if no directory is explicitly given (repo for
/path/to/repo.git and foo for host.xz:foo/.git).