def get_git_info():
    repo = ''
    with open('.git/config') as f:
        for line in f.readlines():
            if 'url' in line:
                repo = line.replace('url = ', '').strip()
    r = repo.split('/')
    # Return a tuple containing the owner and the repo name
    return r[-2], r[-1]
Parses the git info and returns a tuple containg the owner and repo
dataset/ETHPy150Open GrappigPanda/pygemony/pyg/utils.py/get_git_info