Skip commit objects that should be trees, rather than copying them.