Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
do_read_index(): always mark as initialized unless erroring out
Even when `.git/index` did not exist (and that was indicated as being okay), we need to mark the index as initialized when returning from `do_read_index()` with success. This will become relevant in the next commit, where an incorrect condition trying to determine whether an in-memory index was initialized (using `cache_nr == 0` as an indicator, which is wrong) will be replaced with the correct condition (`initialized != 0`). Signed-off-by: Johannes Schindelin <[email protected]>
- Loading branch information