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

Re: [PATCH] test-lib.sh: unset XDG_CACHE_HOME

From
Jeff King <peff@peff.net>
Date
Feb 16, 2018, 18:35 UTC
Message-ID
<20180216183523.GA22021@sigill.intra.peff.net>
In-Reply-To
<6f102a37a06940f6feeeb0c8807ac98a850b7a3b.1518748907.git.sky@genki.is>
On Thu, Feb 15, 2018 at 09:46:04PM -0500, Genki Sky wrote:
Show 6 quoted lines
> git respects XDG_CACHE_HOME for the credential cache. So, we should
> unset XDG_CACHE_HOME for the test environment, lest a user's custom one
> cause failure in the test.
> 
> For example, t/t0301-credential-cache.sh expects a default directory
> to be used if it hasn't explicitly set XDG_CACHE_HOME.

Yep, this makes perfect sense. I can't believe it took almost a year for somebody to trigger this. I guess most people don't set XDG_CACHE_HOME.

Thanks.
-Peff
Previous: Genki Sky
Message 2 of 2 in “test-lib.sh: unset XDG_CACHE_HOME”
  1. test-lib.sh: unset XDG_CACHE_HOMEGenki Sky, Feb 16, 2018
  2. Jeff KingFeb 16, 2018

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.