submodule: avoid auto-discovery in new working tree manipulator code
commitda27bc81f00fb5315341b26db8879c266e8ba1a2
authorStefan Beller <sbeller@google.com>
Tue, 2 May 2017 19:32:13 +0000 (2 12:32 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 4 May 2017 04:42:04 +0000 (4 13:42 +0900)
treeb40d63c558a911d838f1166012d930e48429c761
parenta17062cf42556593fb73547e613b0be867026257
submodule: avoid auto-discovery in new working tree manipulator code

All commands that are run in a submodule, are run in a correct setup,
there is no need to prepare the environment without setting the GIT_DIR
variable. By setting the GIT_DIR variable we fix issues as discussed in
10f5c52656 (submodule: avoid auto-discovery in
prepare_submodule_repo_env(), 2016-09-01)

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