1
0
Fork 0
pull/8200/head
Rob Bast 2019-06-11 13:33:05 +02:00 committed by Rob
parent b73120cbbe
commit 7399638e43
1 changed files with 3 additions and 2 deletions

View File

@ -61,8 +61,9 @@ class HgDriver extends VcsDriver
// clean up directory and do a fresh clone into it
$fs->removeDirectory($this->repoDir);
$command = function ($url) {
return sprintf('hg clone --noupdate %s %s', ProcessExecutor::escape($url), ProcessExecutor::escape($this->repoDir));
$repoDir = $this->repoDir;
$command = function ($url) use ($repoDir) {
return sprintf('hg clone --noupdate %s %s', ProcessExecutor::escape($url), ProcessExecutor::escape($repoDir));
};
$hgUtils->runCommand($command, $this->url, $this->repoDir);