Made changes which fied warnings and errors in tests.
parent
19878c2dc1
commit
3f38eede8a
|
@ -48,7 +48,6 @@ class GitDownloader extends VcsDownloader
|
|||
*/
|
||||
protected function enforceCleanDirectory($path)
|
||||
{
|
||||
$output = array();
|
||||
$this->process->execute(sprintf('cd %s && git status --porcelain', escapeshellarg($path)), $output);
|
||||
if (trim($output)) {
|
||||
throw new \RuntimeException('Source directory has uncommitted changes');
|
||||
|
|
|
@ -48,7 +48,6 @@ class HgDownloader extends VcsDownloader
|
|||
*/
|
||||
protected function enforceCleanDirectory($path)
|
||||
{
|
||||
$output = array();
|
||||
$this->process->execute(sprintf('cd %s && hg st', escapeshellarg($path)), $output);
|
||||
if (trim($output)) {
|
||||
throw new \RuntimeException('Source directory has uncommitted changes');
|
||||
|
|
Loading…
Reference in New Issue