reopenIfNecessary

Reopen the IndexedFile and reinitialize the Repository.