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

Re: [PATCH] t9600-cvsimport.sh: set HOME before checking for cvsps availability

From
Jeff King <peff@peff.net>
Date
Mar 27, 2008, 03:28 UTC
Message-ID
<20080327032834.GA5417@coredump.intra.peff.net>
In-Reply-To
<7v8x05e5fa.fsf@gitster.siamese.dyndns.org>
On Wed, Mar 26, 2008 at 10:55:21AM -0700, Junio C Hamano wrote:
> In the longer run, we probably would want to do something similar for all
> tests to ensure a stable testing environment, don't we?  $HOME/.gitconfig
> may affect the way tested programs behave otherwise.
We used to, as per a patch from Gerrit long ago:
  2eb10ac... Set $HOME for selftests
but it was removed during Dscho's config fix:
  8565d2d... Make tests independent of global config files

which used GIT_CONFIG instead. But that had some problems, which I fixed in:

  8bfa6bd... fix config reading in tests

and that patch explicitly suppresses lookup in the ~/.gitconfig and /etc/gitconfig files (implemented by ab88c363).

So I think all is correct with .gitconfig files. However, I still think setting HOME is a good idea, because it eliminates one more variable in test runs. In particular, I know I have gotten cvsps into a funny state that was resolved by removing the ~/.cvsps cache. So it's probably worth doing as a preventative measure, even if it doesn't fix a specific bug.

-Peff
Previous: Junio C HamanoNext: Johannes Schindelin
Message 3 of 4 in “t9600-cvsimport.sh: set HOME before checking for cvsps availability”
  1. t9600-cvsimport.sh: set HOME before checking for cvsps availabilityGerrit Pape, Mar 26, 2008
  2. Junio C HamanoMar 26, 2008
  3. Jeff KingMar 27, 2008
  4. Johannes SchindelinMar 27, 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.