|
@@ -57,11 +57,10 @@ class SvnDownloader extends VcsDownloader
|
|
|
throw new \RuntimeException('The .svn directory is missing from '.$path.', see https://getcomposer.org/commit-deps for more information');
|
|
|
}
|
|
|
|
|
|
+ $util = new SvnUtil($url, $this->io, $this->config);
|
|
|
$flags = "";
|
|
|
- if (0 === $this->process->execute('svn --version', $output)) {
|
|
|
- if (preg_match('{(\d+(?:\.\d+)+)}', $output, $match) && version_compare($match[1], '1.7.0', '>=')) {
|
|
|
- $flags .= ' --ignore-ancestry';
|
|
|
- }
|
|
|
+ if (version_compare($util->binaryVersion(), '1.7.0', '>=')) {
|
|
|
+ $flags .= ' --ignore-ancestry';
|
|
|
}
|
|
|
|
|
|
$this->io->writeError(" Checking out " . $ref);
|