This is necessary now that hydra-evaluator runs multiple evaluations in parallel, to prevent corruption of Git/Mercurial clones.
7EGUBBRQLBNFHH2E3ZMOTJBV36JG2A4Y5J2CR5I7V3WOXJVNLXYAC # Clone or update a branch of a repository into our SCM cache.sub _cloneRepo {my ($self, $uri, $branch, $deepClone) = @_;
sub _parseValue {my ($value) = @_;(my $uri, my $branch, my $deepClone) = split ' ', $value;$branch = defined $branch ? $branch : "master";return ($uri, $branch, $deepClone);}sub fetchInput {my ($self, $type, $name, $value) = @_;return undef if $type ne "git";my ($uri, $branch, $deepClone) = _parseValue($value);
return $clonePath;}sub _parseValue {my ($value) = @_;(my $uri, my $branch, my $deepClone) = split ' ', $value;$branch = defined $branch ? $branch : "master";return ($uri, $branch, $deepClone);}sub fetchInput {my ($self, $type, $name, $value) = @_;return undef if $type ne "git";