On Tue, 20 Jun 2017 12:19:36 -0700 Brandon Williams <bmwill@xxxxxxxxxx> wrote: > Migrate 'git_dir', 'git_common_dir', 'git_object_dir', 'git_index_file', > 'git_graft_file', and 'namespace' to be stored in 'the_repository'. > > Signed-off-by: Brandon Williams <bmwill@xxxxxxxxxx> > --- > cache.h | 1 - > environment.c | 58 +++++++++++++--------------------------------------------- > path.c | 11 ++++++----- > setup.c | 17 +++++++++++++++-- > 4 files changed, 34 insertions(+), 53 deletions(-) > > diff --git a/cache.h b/cache.h > index 7c81749a9..cd64cbc81 100644 > --- a/cache.h > +++ b/cache.h > @@ -771,7 +771,6 @@ extern int core_apply_sparse_checkout; > extern int precomposed_unicode; > extern int protect_hfs; > extern int protect_ntfs; > -extern int git_db_env, git_index_env, git_graft_env, git_common_dir_env; In the commit message, it is probably worth mentioning commit 557bd83 which added these fields to attempt rewriting a path in do_git_path() only if the appropriate _env flag is set, and that this patch removes this optimization.