git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Make tests independent of global config files

From
Jeff King <peff@peff.net>
Date
Feb 6, 2008, 09:27 UTC
Message-ID
<20080206092753.GA32264@coredump.intra.peff.net>
In-Reply-To
<7vodau1m6t.fsf@gitster.siamese.dyndns.org>
On Wed, Feb 06, 2008 at 01:14:18AM -0800, Junio C Hamano wrote:
Show 7 quoted lines
> > GIT_ETC_CONFIG=$(pwd)/.git/nonexistant
> 
> Instead how about "GIT_NO_ETC_CONFIG" when set _ignores_ /etc/gitconfig
> altogether?
> 
> Then you do not have to make excuses like "eh, you can do this
> more or less with local config but...".

I'm fine with that, as well. And for our purposes, a little cleaner, since we don't have to use the hack-ish "nonexistent" file (which is clearly a spelling nightmare).

Updated patch series to follow.
-Peff
Previous: Junio C HamanoNext: Jeff King
Message 6 of 8 in “Re: [PATCH] Make tests independent of global config files”
  1. Jeff KingFeb 6, 2008
  2. Jeff KingFeb 6, 2008
  3. 1/2 allow GIT_CONFIG_ETC to override compile-time settingJeff King, Feb 6, 2008
  4. 2/2 fix config reading in testsJeff King, Feb 6, 2008
  5. Junio C HamanoFeb 6, 2008
  6. Jeff KingFeb 6, 2008
  7. 1/2 allow suppressing of global and system configJeff King, Feb 6, 2008
  8. 2/2 fix config reading in testsJeff King, Feb 6, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.