On Wed, Feb 24, 2010 at 4:32 AM, Junio C Hamano <gitster@xxxxxxxxx> wrote: > Giuseppe Bilotta <giuseppe.bilotta@xxxxxxxxx> writes: > >> On Tue, Feb 23, 2010 at 10:47 PM, Jens Lehmann <Jens.Lehmann@xxxxxx> wrote: >>> Only GIT_INDEX_FILE was cleared until now, but other environment variables >>> have to be cleared too before running git status in a submodule. >>> >> Of course this third use-case has a difference in that GIT_DIR is >> actually set to something else and not just cleared, but this >> particular case could just deep-copy the array modifying the >> appropriate entry. > > Something like this, I guess. > > It is a bit frustrating that local_repo_env[] is a NULL terminated array > and we cannot use ARRAY_SIZE(local_repo_env) as a compile-time constant. I have a very simple solution for this, coming in the next revision of my patchset, together with the environment.c move -- Giuseppe "Oblomov" Bilotta -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html