2
0
mirror of https://github.com/boostorg/website.git synced 2026-01-27 19:32:16 +00:00

Make trailing '.git' in module url optional

This commit is contained in:
Daniel James
2017-12-28 21:58:52 +00:00
parent d476f20808
commit 768b1922c2

View File

@@ -195,7 +195,7 @@ function read_metadata_from_modules($path, $location, $hash, $sublibs = array('l
foreach($modules as $name => $module) {
$submodule_path = $path ? "{$path}/{$module['path']}" : $module['path'];
if (!preg_match('@^\.\./(\w+)\.git$@', $module['url'])) {
if (!preg_match('@^\.\./(\w+)(\.git)?$@', $module['url'])) {
// In quiet mode don't warn about documentation submodules, which
// libraries have previously included from remote locations.
if (!UpdateDocListSettings::$quiet || strpos($submodule_path.'/', '/doc/') === false) {