Merge "Run change hooks and ref-updated events after indexing is done." into stable-2.9