From: Nguyễn Thái Ngọc Duy Date: Wed, 1 Feb 2012 13:48:55 +0000 (+0700) Subject: find_pack_entry(): do not keep packed_git pointer locally X-Git-Tag: v1.7.9.2~14^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/c01f51cc750dbd76e50919bf4e3b94e1b47d2e23?ds=inline;hp=c01f51cc750dbd76e50919bf4e3b94e1b47d2e23 find_pack_entry(): do not keep packed_git pointer locally Commit f7c22cc (always start looking up objects in the last used pack first - 2007-05-30) introduce a static packed_git* pointer as an optimization. The kept pointer however may become invalid if free_pack_by_name() happens to free that particular pack. Current code base does not access packs after calling free_pack_by_name() so it should not be a problem. Anyway, move the pointer out so that free_pack_by_name() can reset it to avoid running into troubles in future. Signed-off-by: Nguyễn Thái Ngọc Duy Acked-by: Nicolas Pitre Signed-off-by: Junio C Hamano ---