GitInput plugin: Don't clone during getCommits
This doesn't work if hydra-queue-runner has no write access to the scm directory, and in any case races with the evaluator.
This commit is contained in:
parent
ae52fc7f61
commit
3e0f5f664a
|
@ -156,7 +156,7 @@ sub getCommits {
|
|||
|
||||
my ($uri, $branch, $deepClone) = _parseValue($value);
|
||||
|
||||
my $clonePath = $self->_cloneRepo($uri, $branch, $deepClone);
|
||||
my $clonePath = getSCMCacheDir . "/git/" . sha256_hex($uri);
|
||||
|
||||
my $out = grab(cmd => ["git", "log", "--pretty=format:%H%x09%an%x09%ae%x09%at", "$rev1..$rev2"], dir => $clonePath);
|
||||
|
||||
|
|
Loading…
Reference in a new issue