Re: [PATCH v2 7/9] read_early_config(): avoid .git/config hack when unneeded

2017-03-02 Thread Jeff King
On Fri, Mar 03, 2017 at 03:04:28AM +0100, Johannes Schindelin wrote: > So far, we only look whether the startup_info claims to have seen a > git_dir. > > However, do_git_config_sequence() (and consequently the > git_config_with_options() call used by read_early_config() asks the > have_git_dir()

[PATCH v2 7/9] read_early_config(): avoid .git/config hack when unneeded

2017-03-02 Thread Johannes Schindelin
So far, we only look whether the startup_info claims to have seen a git_dir. However, do_git_config_sequence() (and consequently the git_config_with_options() call used by read_early_config() asks the have_git_dir() function whether we have a .git/ directory, which in turn also looks at git_dir