public function checkSubSubmodules($repo, $name)
{
$output = $this->git->command('submodule foreach git submodule status', $repo);
if (count($output) > 0) {
foreach ($output as $line) {
$line = explode(' ', trim($line));
// Skip if string start with 'Entering'
if (trim($line[0]) == 'Entering') {
continue;
}
// If sub-submodules are turned off, don't add them to queue
if ($this->scanSubmodules && $this->scanSubSubmodules) {
$this->submodules[] = ['revision' => $line[0], 'name' => $name . '/' . $line[1], 'path' => $repo . '/' . $name . '/' . $line[1]];
$this->cli->out(sprintf(' Found sub-submodule %s.', "{$name}/{$line['1']}"));
}
// But ignore them nonetheless
$this->globalFilesToExclude[] = $line[1];
}
}
}