def get_repos(path):
    p = str(path)
    ret = []
    if not os.path.exists(p):
        return ret
    for d in os.listdir(p):
        pd = os.path.join(p, d)
        if os.path.exists(pd) and is_repo(pd):
            ret.append(Local(pd))
    return ret
Returns list of found branches.
dataset/ETHPy150Open rsgalloway/grit/grit/repo/local.py/get_repos