From 6e2a09d24b2634cdfec3395122cd4a07eb517b0d Mon Sep 17 00:00:00 2001 From: Nelson Elhage Date: Thu, 12 Aug 2010 10:18:12 -0400 Subject: index-pack: Don't follow replace refs. Without this, attempting to index a pack containing objects that have been replaced results in a fatal error that looks like: fatal: SHA1 COLLISION FOUND WITH ! Signed-off-by: Nelson Elhage Acked-by: Christian Couder Signed-off-by: Junio C Hamano --- builtin/index-pack.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'builtin') diff --git a/builtin/index-pack.c b/builtin/index-pack.c index a89ae831dd..fad76bf7a8 100644 --- a/builtin/index-pack.c +++ b/builtin/index-pack.c @@ -884,6 +884,8 @@ int cmd_index_pack(int argc, const char **argv, const char *prefix) if (argc == 2 && !strcmp(argv[1], "-h")) usage(index_pack_usage); + read_replace_refs = 0; + /* * We wish to read the repository's config file if any, and * for that it is necessary to call setup_git_directory_gently(). -- cgit v1.2.3