packages/export: export_git: also handle submodules.