1
0
Fork 0

Made changes which fied warnings and errors in tests.

pull/246/head
Leszek Prabucki 2012-01-23 08:41:59 +01:00
parent 19878c2dc1
commit 3f38eede8a
3 changed files with 1 additions and 3 deletions

View File

@ -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');

View File

@ -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');

View File

@ -100,4 +100,4 @@ abstract class VcsDownloader implements DownloaderInterface
* @throws \RuntimeException if the directory is not clean
*/
abstract protected function enforceCleanDirectory($path);
}
}