1
0
Fork 0

Merge pull request #2921 from schmkr/svn-driver-patch

Updating SvnDriver trunk revision check
pull/2931/head
Jordi Boggiano 2014-04-16 08:27:25 +02:00
commit 7b487360e3
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ class SvnDriver extends VcsDriver
foreach ($this->process->splitLines($output) as $line) {
$line = trim($line);
if ($line && preg_match('{^\s*(\S+).*?(\S+)\s*$}', $line, $match)) {
if (isset($match[1]) && isset($match[2]) && $match[2] === 'composer.json') {
if (isset($match[1]) && isset($match[2]) && $match[2] === './') {
$this->branches['trunk'] = $this->buildIdentifier(
'/' . $this->trunkPath,
$match[1]