Reflect API changes in example scripts

repo.head and commit.parents return commit instances, not SHA ids