Updating SvnDriver trunk revision check
Not checking revision of composer.json, but from its parent directory. See composer/composer#2849pull/2921/head
parent
14f35e812c
commit
8dd6b052ce
|
@ -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]
|
||||||
|
|
Loading…
Reference in New Issue