def main():
    try:
        f = open('.git', 'r')
        subgitdir = f.read()
        f.close()
    except (__HOLE__, OSError):
        raise SystemExit(1)
    subgitdir = subgitdir.replace('gitdir: ', '').strip()
    p = subprocess.Popen(['git','update-server-info'], cwd=subgitdir)
    p.communicate()
dataset/ETHPy150Open trebuchet-deploy/trigger/trigger/utils/submodule_update.py/main