diff --git a/src/Composer/Repository/Vcs/SvnDriver.php b/src/Composer/Repository/Vcs/SvnDriver.php index b979c2e4b..c5a67b455 100644 --- a/src/Composer/Repository/Vcs/SvnDriver.php +++ b/src/Composer/Repository/Vcs/SvnDriver.php @@ -193,7 +193,13 @@ class SvnDriver extends VcsDriver if (null === $this->branches) { $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) { foreach ($this->process->splitLines($output) as $line) { $line = trim($line);