summaryrefslogtreecommitdiff
path: root/t/t5515/refs.br-unconfig_remote-explicit
diff options
context:
space:
mode:
authorLibravatar Nguyễn Thái Ngọc Duy <pclouds@gmail.com>2012-02-01 20:48:55 +0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-02-01 14:12:42 -0800
commitc01f51cc750dbd76e50919bf4e3b94e1b47d2e23 (patch)
tree6fa6a2996c3cf63c66c63eaba11138e7ebc358aa /t/t5515/refs.br-unconfig_remote-explicit
parentsha1_file.c: move the core logic of find_pack_entry() into fill_pack_entry() (diff)
downloadtgif-c01f51cc750dbd76e50919bf4e3b94e1b47d2e23.tar.xz
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 <pclouds@gmail.com> Acked-by: Nicolas Pitre <nico@fluxnic.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5515/refs.br-unconfig_remote-explicit')
0 files changed, 0 insertions, 0 deletions