mirror of
https://github.com/boostorg/boost-tasks.git
synced 2026-02-01 20:32:14 +00:00
Fix currentHashes for empty $paths.
This commit is contained in:
@@ -126,8 +126,8 @@ class LocalMirror {
|
||||
|
||||
$child_repos = [];
|
||||
foreach(SuperProject::readSubmoduleConfig($dst_dir) as $name => $values) {
|
||||
if (empty($values['path']) { throw \RuntimeException("Missing path.");
|
||||
if (empty($values['url']) { throw \RuntimeException("Missing URL.");
|
||||
if (empty($values['path'])) { throw \RuntimeException("Missing path."); }
|
||||
if (empty($values['url'])) { throw \RuntimeException("Missing URL."); }
|
||||
$child_repos[$values['path']] = self::resolveGithubUrl($values['url'], $repo);
|
||||
}
|
||||
|
||||
|
||||
@@ -176,8 +176,10 @@ class SuperProject extends Repo {
|
||||
* @return Array
|
||||
*/
|
||||
static function currentHashes($repo_path, $paths, $ref = 'HEAD') {
|
||||
$matches = null;
|
||||
$hashes = Array();
|
||||
if (!$paths) { return $hashes; }
|
||||
|
||||
$matches = null;
|
||||
foreach (Process::read_lines(
|
||||
"git ls-tree {$ref} ". implode(' ', $paths),
|
||||
$repo_path) as $line)
|
||||
|
||||
Reference in New Issue
Block a user