def get_initial_readme_info(readme_path):
    """
    Get the initial lines of a readme, ignoring the list of contributions generated previously

    :param readme_path: the path of the readme
    :return: the initial lines of a the readme as string separated by '\n'
    """
    with open(readme_path) as f:
        base_readme = ''
        lines = f.read().splitlines()
        for l in lines:
            line = l.strip()
            if (line == '## List of contributions'):
                break
            base_readme += line + '\n'
        return base_readme + '## List of contributions'