Code

pack-objects: fix delta cache size accounting
authorNicolas Pitre <nico@cam.org>
Sat, 8 Dec 2007 01:27:52 +0000 (20:27 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sat, 8 Dec 2007 11:38:35 +0000 (03:38 -0800)
commitb7a28f7827ba1043501fe357cbbdff3f2e357143
tree49133e60e490ffc62140bbf2d396de0491c7e25c
parent2099bca9ed06a4cb7ab0b8ca38bc90df5632ba41
pack-objects: fix delta cache size accounting

The wrong value was substracted from delta_cache_size when replacing
a cached delta, as trg_entry->delta_size was used after the old size
had been replaced by the new size.

Noticed by Linus.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-pack-objects.c