Code

is_submodule_modified(): clear environment properly
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 24 Feb 2010 23:34:18 +0000 (00:34 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 25 Feb 2010 00:24:25 +0000 (16:24 -0800)
commit5ce9086ddfe6931ef34fcd99778c9235e2ee1839
treec1fa25137b822567a479a146d5958f58a56b9936
parent74ae14199dfb4b3b22a10d3dcecb62b457245564
is_submodule_modified(): clear environment properly

Rather than only clearing GIT_INDEX_FILE, take the list of environment
variables to clear from local_repo_env, appending the settings for
GIT_DIR and GIT_WORK_TREE.

Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
submodule.c