def SetConfigLFSServerRepo(repo, url):
    """Sets a configuration for the lfs server for the given repository
    """
    ret = repo.git.config("-f", ".lfsconfig", "lfs.url = " + url)
    ret = ret + repo.git.add(".lfsconfig")
    return ret