def _do_not_track_lock_file(client):
    """Add lock file to .gitingore if not already exists."""
    lock_file = '.renku.lock'
    gitignore = client.path / '.gitignore'
    if lock_file not in gitignore.read_text():
        gitignore.open('a').write('\n{0}\n'.format(lock_file))
