From: Henrik Grubbström (Grubba) Date: Fri, 16 Apr 2010 16:10:01 GMT Subject: [PATCH RFC 4/5] reachable: Made the gc aware of the ce_norm_sha1. Message-ID: In-Reply-To: Avoid having the gc zap the normalized blobs in the index. Signed-off-by: Henrik Grubbström --- reachable.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/reachable.c b/reachable.c index b515fa2..61ea623 100644 --- a/reachable.c +++ b/reachable.c @@ -191,6 +191,8 @@ static void add_cache_refs(struct rev_info *revs) * added them as objects, we've really done everything * there is to do for a blob */ + if (active_cache[i]->norm_flags) + lookup_blob(active_cache[i]->norm_sha1); } if (active_cache_tree) add_cache_tree(active_cache_tree, revs); -- 1.7.0.4.369.g81e89