Fix parsing of trunk in SvnDriver, fixes composer/satis#88
parent
ef072ff8c0
commit
2bf90b544a
|
@ -193,7 +193,13 @@ class SvnDriver extends VcsDriver
|
||||||
if (null === $this->branches) {
|
if (null === $this->branches) {
|
||||||
$this->branches = array();
|
$this->branches = array();
|
||||||
|
|
||||||
$output = $this->execute('svn ls --verbose', $this->baseUrl . '/');
|
if (false === strpos($this->trunkPath, '/')) {
|
||||||
|
$trunkParent = $this->baseUrl . '/';
|
||||||
|
} else {
|
||||||
|
$trunkParent = $this->baseUrl . '/' . dirname($this->trunkPath) . '/';
|
||||||
|
}
|
||||||
|
|
||||||
|
$output = $this->execute('svn ls --verbose', $trunkParent);
|
||||||
if ($output) {
|
if ($output) {
|
||||||
foreach ($this->process->splitLines($output) as $line) {
|
foreach ($this->process->splitLines($output) as $line) {
|
||||||
$line = trim($line);
|
$line = trim($line);
|
||||||
|
|
Loading…
Reference in New Issue