a Repository.
canonical Object id of the Commit the HEAD should point to.
true if head was successfully set, false otherwise.