]> git.ipfire.org Git - thirdparty/git.git/blobdiff - packfile.c
Merge branch 'bc/sha-256-part-2'
[thirdparty/git.git] / packfile.c
index f4e752996dbcca3778c42de1d55d856a28be974d..6ab5233613e2417f8ee9ce0991ae532726b59b20 100644 (file)
@@ -178,6 +178,7 @@ int load_idx(const char *path, const unsigned int hashsz, void *idx_map,
                     */
                    (sizeof(off_t) <= 4))
                        return error("pack too large for current definition of off_t in %s", path);
+               p->crc_offset = 8 + 4 * 256 + nr * hashsz;
        }
 
        p->index_version = version;