1
0
Fork 0

Updating SvnDriver trunk revision check

Not checking revision of composer.json, but from its parent directory.

See composer/composer#2849
pull/2921/head
schmkr 2014-04-15 23:56:45 +02:00
parent 14f35e812c
commit 8dd6b052ce
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) { foreach ($this->process->splitLines($output) as $line) {
$line = trim($line); $line = trim($line);
if ($line && preg_match('{^\s*(\S+).*?(\S+)\s*$}', $line, $match)) { 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->branches['trunk'] = $this->buildIdentifier(
'/' . $this->trunkPath, '/' . $this->trunkPath,
$match[1] $match[1]