diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-04-23 22:07:49 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-04-23 22:07:49 -0700 |
commit | cdfe138b360cd10f74ef9d2d031cb10447cb3338 (patch) | |
tree | 44a8d80a209a2f490ae0575c634ea50e7a6e3ac7 /builtin/fsck.c | |
parent | 8868ba19626a72d5883241c36fd5477897ef8dd1 (diff) | |
parent | a33fc72fe911fdb8e284c94e08e8f1dafe4d3187 (diff) | |
download | git-cdfe138b360cd10f74ef9d2d031cb10447cb3338.tar.gz git-cdfe138b360cd10f74ef9d2d031cb10447cb3338.tar.xz |
Merge branch 'jh/verify-index-checksum-only-in-fsck'
The index file has a trailing SHA-1 checksum to detect file
corruption, and historically we checked it every time the index
file is used. Omit the validation during normal use, and instead
verify only in "git fsck".
* jh/verify-index-checksum-only-in-fsck:
read-cache: force_verify_index_checksum
Diffstat (limited to 'builtin/fsck.c')
-rw-r--r-- | builtin/fsck.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/fsck.c b/builtin/fsck.c index f76e4163a..b5e13a455 100644 --- a/builtin/fsck.c +++ b/builtin/fsck.c @@ -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; |