It's also okay if an expected tree object is actually a commit.