Allow disabling svn branches/tags, fixes composer/satis#43
parent
ae734229d7
commit
5b24a48827
|
@ -259,6 +259,9 @@ repository like this:
|
|||
]
|
||||
}
|
||||
|
||||
If you have no branches or tags directory you can disable them entirely by
|
||||
setting the `branches-path` or `tags-path` to `false`.
|
||||
|
||||
### PEAR
|
||||
|
||||
It is possible to install packages from any PEAR channel by using the `pear`
|
||||
|
|
|
@ -160,6 +160,7 @@ class SvnDriver extends VcsDriver
|
|||
if (null === $this->tags) {
|
||||
$this->tags = array();
|
||||
|
||||
if ($this->tagsPath !== false) {
|
||||
$output = $this->execute('svn ls --verbose', $this->baseUrl . '/' . $this->tagsPath);
|
||||
if ($output) {
|
||||
foreach ($this->process->splitLines($output) as $line) {
|
||||
|
@ -173,6 +174,7 @@ class SvnDriver extends VcsDriver
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $this->tags;
|
||||
}
|
||||
|
@ -200,6 +202,7 @@ class SvnDriver extends VcsDriver
|
|||
}
|
||||
unset($output);
|
||||
|
||||
if ($this->branchesPath !== false) {
|
||||
$output = $this->execute('svn ls --verbose', $this->baseUrl . '/' . $this->branchesPath);
|
||||
if ($output) {
|
||||
foreach ($this->process->splitLines(trim($output)) as $line) {
|
||||
|
@ -213,6 +216,7 @@ class SvnDriver extends VcsDriver
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $this->branches;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue