Update repository to working state.