Returns list of found branches.

    :return: List of grit.Local objects

def get_repos(path):
    """
    Returns list of found branches.

    :return: List of grit.Local objects
    """
    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