def is_repo_initialized():
    repo = settings.core.repository
    if repo is None:
        return False
    ref = 'refs/heads/{}'.format(settings.core.branch)
    try:
        repo.lookup_reference(ref)
    except __HOLE__:
        return False
    return True
dataset/ETHPy150Open natano/tiget/tiget/git.py/is_repo_initialized