We might want to explain here that `write_tree` doesn't write out the index and you need `write` for that. In this case it doesn't matter because it's empty, but I've seen this confusion happen a few times.