Fix svn status with externals, fixes #766

main
Jordi Boggiano 12 years ago
parent 1aa2cfe6e1
commit d53ebf5ba9

@ -50,9 +50,9 @@ class SvnDownloader extends VcsDownloader
*/ */
protected function enforceCleanDirectory($path) protected function enforceCleanDirectory($path)
{ {
$this->process->execute('svn status', $output, $path); $this->process->execute('svn status --ignore-externals', $output, $path);
if (trim($output)) { if (preg_match('{^ *[^X ] +}m', $output)) {
throw new \RuntimeException('Source directory ' . $path . ' has uncommitted changes'); throw new \RuntimeException('Source directory ' . $path . ' has uncommitted changes:'."\n\n".rtrim($output));
} }
} }

Loading…
Cancel
Save