I try to merge branch into master:
repo = pygit2.Repository("/path/to/repo/")
branch = repo.lookup_branch("upstream/branch", pygit2.GIT_BRANCH_REMOTE)
oid = branch.target
merge_result = repo.merge(oid)
And merge_result contains ff oid (as in documentaion) and repo hasn't changed.
What should I do next to change the repository?