Re: [PATCH v2 3/9] setup_git_directory(): avoid changing global state during discovery

2017-03-03 Thread Johannes Schindelin
Hi Peff, On Thu, 2 Mar 2017, Jeff King wrote: > On Fri, Mar 03, 2017 at 03:04:11AM +0100, Johannes Schindelin wrote: > > > For historical reasons, Git searches for the .git/ directory (or the > > .git file) by changing the working directory successively to the > > parent directory of the

Re: [PATCH v2 3/9] setup_git_directory(): avoid changing global state during discovery

2017-03-02 Thread Jeff King
On Fri, Mar 03, 2017 at 03:04:11AM +0100, Johannes Schindelin wrote: > For historical reasons, Git searches for the .git/ directory (or the > .git file) by changing the working directory successively to the parent > directory of the current directory, until either anything was found or > until a

[PATCH v2 3/9] setup_git_directory(): avoid changing global state during discovery

2017-03-02 Thread Johannes Schindelin
For historical reasons, Git searches for the .git/ directory (or the .git file) by changing the working directory successively to the parent directory of the current directory, until either anything was found or until a ceiling or a mount point is hit. Further global state may be changed,