Teach update-index to read from ls-tree.