revert: actually check for a dirty index