setHead will have to ported after blob, commit, and reference APIs are in place.