Prevent infinite recursion with submodule_update