Merge branch 'bw/dir-c-stops-relying-on-the-index'
[gitweb.git] / builtin / fsck.c
index ea3a9f8a70a2f87a45c5549e4585cc1f877d8433..32a32e55c8539372c11a36eba85f3bf14f0e221a 100644 (file)
@@ -771,6 +771,7 @@ int cmd_fsck(int argc, const char **argv, const char *prefix)
        }
 
        if (keep_cache_objects) {
+               verify_index_checksum = 1;
                read_cache();
                for (i = 0; i < active_nr; i++) {
                        unsigned int mode;