1
0
Fork 0

fix issue #251 - Using $this not in object context

pull/151/head
Brian Clozel 2012-01-23 19:41:44 +01:00 committed by digitalkaoz
parent 50e7f4bea9
commit ca7bd6459b
1 changed files with 2 additions and 1 deletions

View File

@ -185,7 +185,8 @@ class HgDriver extends VcsDriver implements VcsDriverInterface
return false;
}
$exit = $this->process->execute(sprintf('cd %s && hg identify %s', escapeshellarg(sys_get_temp_dir()), escapeshellarg($url)), $ignored);
$processExecutor = new ProcessExecutor();
$exit = $processExecutor->process->execute(sprintf('cd %s && hg identify %s', escapeshellarg(sys_get_temp_dir()), escapeshellarg($url)), $ignored);
return $exit === 0;
}
}