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

Re: Question regarding quarantine environments

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Aug 3, 2018, 02:49 UTC
Message-ID
<20180803024902.GC197924@aiede.svl.corp.google.com>
In-Reply-To
<20180802183924.GB23690@sigill.intra.peff.net>
Hi,
Jeff King wrote:
> On Thu, Aug 02, 2018 at 12:58:52PM -0500, Liam Decker wrote:
Show 11 quoted lines
>> The solution that I implemented was to check the objects directory for the
>> object, and if it was not there, to look for a quarantine directory and try
>> there. However, that feels fairly inefficient.
>
> That's more or less what Git will do under the hood (though in the
> opposite order).
>
>> For the curious, the library and solution I attempted are both here [5]
>
> Just skimming, but it sounds like go-git does not support the
> GIT_OBJECT_DIRECTORY environment variable.

To be clear: we don't guarantee that the quarantine directory in the future will be where it is today.

So as Peff hinted, supporting GIT_OBJECT_DIRECTORY in go-git is likely to be the best way forward for your tool.

Thanks and hope that helps, Jonathan

Previous: Jeff KingNext: Ævar Arnfjörð Bjarmason
Message 3 of 7 in “Question regarding quarantine environments”
  1. Liam DeckerAug 2, 2018
  2. Jeff KingAug 2, 2018
  3. Jonathan NiederAug 3, 2018
  4. Ævar Arnfjörð BjarmasonAug 3, 2018
  5. Jeff KingAug 3, 2018
  6. Ævar Arnfjörð BjarmasonAug 3, 2018
  7. Jeff KingAug 3, 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.