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

Re: test suite: why does git add large_file create a pack, rather than an object?

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 1, 2019, 10:47 UTC
Message-ID
<xmqqftr2uhmg.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<f0c838f0-2f75-2b05-1aeb-3db4743ce89a@iee.org>
Philip Oakley <philipoakley@iee.org> writes:
Show 17 quoted lines
> At the moment I'm using an extended _test_ case that starts by adding
> a ~5.1Gb file and then using verify-pack, which aborts with an error.
>
>         dd if=/dev/zero of=file bs=1M count=5100 &&
>         git config core.compression 0 &&
>         git config core.looseCompression 0 &&
>         git add file &&
>         git verify-pack -s .git/objects/pack/*.pack &&
>         git fsck --verbose --strict --full &&
>         ...
>
> If however I simple execute the commands from the GfW bash, the added
> file is stored as a blob object, rather than a pack.
>
> I'm at a loss to understand the reason for the change in behaviour
> [store file as pack, vs store as object] between running the code as a
> test script and at the terminal. What am I missing?

To which test are you adding the above piece? Perhaps one of those that configures core.bigfilethreashold?

Previous: Philip OakleyNext: Philip Oakley
Message 2 of 4 in “test suite: why does git add large_file create a pack, rather than an object?”
  1. Philip OakleyMar 30, 2019
  2. Junio C HamanoApr 1, 2019
  3. Philip OakleyApr 1, 2019
  4. Duy NguyenApr 2, 2019

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.