mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
MDL-47411 admin: Check if the plugin is a git submodule on uninstalling
Credit goes to PJ King. I was trying to add unit tests for this new behaviour but it turned out there are many hard-coded dependencies and it's not easy to make the whole machinery support alternative location of testable (fake) plugins.
This commit is contained in:
parent
d07b0302a9
commit
a5d08dce93
@ -654,6 +654,10 @@ class core_plugin_manager {
|
||||
return 'git';
|
||||
}
|
||||
|
||||
if (is_file($pluginroot.'/.git')) {
|
||||
return 'git-submodule';
|
||||
}
|
||||
|
||||
if (is_dir($pluginroot.'/CVS')) {
|
||||
return 'cvs';
|
||||
}
|
||||
|
@ -181,6 +181,10 @@ class deployer {
|
||||
return 'git';
|
||||
}
|
||||
|
||||
if (is_file($pluginroot.'/.git')) {
|
||||
return 'git-submodule';
|
||||
}
|
||||
|
||||
if (is_dir($pluginroot.'/CVS')) {
|
||||
return 'cvs';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user