assert that tree is clean after commit
fix doc string