diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-09-13 00:34:34 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-09-13 00:34:34 +0200 |
commit | 293c232ab1dcfa08d650fa9c21377b1ef7b447dc (patch) | |
tree | f637793399e0a9113e44d70ece105316a4613e0d /submodule.c | |
parent | Merge branch 'jk/squelch-false-warning-from-gcc-o3' (diff) | |
parent | submodule: avoid auto-discovery in prepare_submodule_repo_env() (diff) | |
download | git-293c232ab1dcfa08d650fa9c21377b1ef7b447dc.tar.xz git-293c232ab1dcfa08d650fa9c21377b1ef7b447dc.zip |
Merge branch 'jc/submodule-anchor-git-dir'
Having a submodule whose ".git" repository is somehow corrupt
caused a few commands that recurse into submodules loop forever.
* jc/submodule-anchor-git-dir:
submodule: avoid auto-discovery in prepare_submodule_repo_env()
Diffstat (limited to 'submodule.c')
-rw-r--r-- | submodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/submodule.c b/submodule.c index 5a62aa2960..0ef2ff4321 100644 --- a/submodule.c +++ b/submodule.c @@ -1280,4 +1280,5 @@ void prepare_submodule_repo_env(struct argv_array *out) if (strcmp(*var, CONFIG_DATA_ENVIRONMENT)) argv_array_push(out, *var); } + argv_array_push(out, "GIT_DIR=.git"); } |