def get_all_submodules()

in manifest-verifier/verify_manifest.py [0:0]


def get_all_submodules():
    info_dict = {}
    repo = Repo(REPO_PATH)
    for submodule in repo.submodules:
        path = submodule.abspath.replace(REPO_PATH+'/', '')
        if path not in IGNORE_SUBMODULES_LIST:
            #print(path,':',submodule.module().head.commit)
            info_dict[path] = submodule.module().head.commit

    return info_dict