chg: [diag] Added grep -v ^- to make sure we always only get the submodules that are available

pull/4434/head
Steve Clement 2019-04-08 15:55:23 +09:00
parent a0df078b60
commit 173a2bfd5e
1 changed files with 1 additions and 1 deletions

View File

@ -4571,7 +4571,7 @@ class Server extends AppModel
public function getSubmodulesGitStatus()
{
exec('cd ' . APP . '../; git submodule status --cached | cut -b 2- | cut -d " " -f 1,2 ', $submodules_names);
exec('cd ' . APP . '../; git submodule status --cached | grep -v ^- | cut -b 2- | cut -d " " -f 1,2 ', $submodules_names);
$status = array();
foreach ($submodules_names as $submodule_name_info) {
$submodule_name_info = explode(' ', $submodule_name_info);