is_submodule_modified(): fix breakage with external GIT_INDEX_FILEv1.7.0-rc1
commitb0883aa6c77111e88496bd0afe073caf68ab9f99
authorJunio C Hamano <gitster@pobox.com>
Sat, 30 Jan 2010 20:08:26 +0000 (30 12:08 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sat, 30 Jan 2010 21:56:56 +0000 (30 13:56 -0800)
treeb4f021814276c6dd698ef6e810e61f3cd0221193
parenta9c7c4364a6c1e0d95790cf2c8697b5b6ff30b1b
is_submodule_modified(): fix breakage with external GIT_INDEX_FILE

Even when the environment was given for the top-level process, checking
in the submodule work tree should use the index file associated with the
work tree of the submodule.  Do not export it to the environment.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
submodule.c