Don't run hooks when reverting changes.