1
0
Fork 0

Allow reading repo.0 in config command, fixes #5692

pull/5696/head
Jordi Boggiano 2016-09-19 18:47:44 +02:00
parent 64d29dc6dc
commit 8e1b90bc08
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ EOT
$rawData = $this->configFile->read();
$data = $this->config->all();
if (preg_match('/^repos?(?:itories)?(?:\.(.+))?/', $settingKey, $matches)) {
if (empty($matches[1])) {
if (!isset($matches[1]) || $matches[1] === '') {
$value = isset($data['repositories']) ? $data['repositories'] : array();
} else {
if (!isset($data['repositories'][$matches[1]])) {