Update the code of submodule plugin.
Merge pull request #3773 from natural-law/master

Update the code of submodule plugin.