Re: [PATCH] Make tests independent of global config files
- From
Jeff King <peff@peff.net>
- Date
- Feb 6, 2008, 09:04 UTC
- Message-ID
- <20080206090453.GA6762@coredump.intra.peff.net>
- In-Reply-To
- <20080206083817.GA19710@coredump.intra.peff.net>
On Wed, Feb 06, 2008 at 03:38:17AM -0500, Jeff King wrote:
Show 6 quoted lines
> So I think we are stuck adding in some environment magic to suppress the > reading of ETC_GITCONFIG, and doing something like: > > unset GIT_CONFIG > GIT_ETC_CONFIG=$(pwd)/.git/nonexistant > GIT_LOCAL_CONFIG=$(pwd)/.git/nonexistant
Actually, we don't need to suppress GIT_LOCAL_CONFIG in the same way; we just need to make sure it isn't set. But we do need to set HOME to avoid that lookup. Patch series will follow.
-Peff