Details
-
Type:
Improvement
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.6.5, 2.7.2, 2.8
-
Component/s: Installation, Other
-
Testing Instructions:
-
Affected Branches:MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE
-
Fixed Branches:MOODLE_26_STABLE, MOODLE_27_STABLE
-
Pull from Repository:
-
Pull Master Branch:
MDL-47411-master-submodules -
Pull Master Diff URL:
Description
lib\classes\update\deployer.php -> plugin_external_source()
AND
lib\classes\plugin_manager.php -> plugin_external_source()
both check to see if the current version of a plugin is a checkout of an external repository.
Although this function checks for unique git repositories, it doesn't check for git submodules. Whereas git repositories create a .git directory by default, git submodules create a .git file. Therefore, this improvement might be as simple as changing:
if (is_dir($pluginroot.'/.git')) { |
return 'git'; |
}
|
to
if (file_exists($pluginroot.'/.git')) { |
return 'git'; |
}
|