def has_submodules(directory=None):
    root = get_root(directory)
    checked_dir = directory or os.getcwd()
    if root is None:
        raise RuntimeError("Directory '{0}' is not in a git repository.".format(checked_dir))
    cmd = "git submodule status"
    output = check_output(cmd, shell=True, cwd=root, stderr=PIPE)
    if not output.strip():
        return False
    return True
Encrypts a single block. This is the main AES function
dataset/ETHPy150Open ros-infrastructure/bloom/bloom/git.py/has_submodules--crossover with--dataset/ETHPy150Open mrknow/filmkodi/plugin.video.mrknow/lib/utils/pyaes.py/AES.encrypt_block