From 5165dd598a402b25301ea41fa5e0d9a72ad78393 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Th=C3=A1i=20Ng=E1=BB=8Dc=20Duy?= Date: Fri, 13 Jun 2014 19:19:47 +0700 Subject: read-tree: force split-index mode off on --index-output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Just a (paranoid?) safety measure.. Signed-off-by: Nguyễn Thái Ngọc Duy Signed-off-by: Junio C Hamano diff --git a/read-cache.c b/read-cache.c index aa848e1..b1027f7 100644 --- a/read-cache.c +++ b/read-cache.c @@ -2070,7 +2070,8 @@ int write_locked_index(struct index_state *istate, struct lock_file *lock, { struct split_index *si = istate->split_index; - if (!si || (istate->cache_changed & ~EXTMASK)) { + if (!si || alternate_index_output || + (istate->cache_changed & ~EXTMASK)) { if (si) hashclr(si->base_sha1); return do_write_locked_index(istate, lock, flags); -- cgit v0.10.2-6-g49f6