git/list[1] front-page[2] threads[3] people[4] search[5] about
wed 2026-10-07 16:09 UTC

Re: [PATCH] t0008: fix "large exclude file ignored in tree"

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 15, 2026, 05:50 UTC
Message-ID
<xmqqv7extzd9.fsf@gitster.g>
In-Reply-To
<20260315034851.2261530-1-mroik@delayed.space>
Mirko Faina <mroik@delayed.space> writes:
> Subject: Re: [PATCH] t0008: fix "large exclude file ignored in tree"
Strange.  That is clearly not what this patch is touching.
  Subject: t0008: fix cleanup in 'symlinks not respected in-tree'
or something?
> Add cleanup to previous test for file that is unrequired to test the
> size of the ignored exclude file.

This description is also inaccurate. It seems to be talking about the next test in the file ("large exclude file ignored in tree") rather than the one it's actually changing. Worse, the next test does its own creation of the "large" .gitignore file and also cleans it up itself, so there seem to be no need to fix it, either.

    The test 'symlinks not respected in-tree' creates a 'subdir'
    directory and 'subdir/.gitignore' symlink, but only removes the
    top-level '.gitignore' file in its cleanup.
    Add 'subdir' to the test_when_finished command to ensure the
    worktree is properly cleaned up after the test.
or something, perhaps?
This patch has some disturbing characteristics.
- The subject line and commit message describe a fix for the "large
  exclude file ignored in tree" test, but the code change actually
  modifies the "symlinks not respected in-tree" test.
- The description mentions a file "unrequired to test the size", which
  doesn't logically apply to the change being made (adding a directory
  to a cleanup command in a symlink test).
- This kind of context-mixing (applying a correct fix for one test but
  attributing it to a neighboring one) is a common pattern in LLM
  outputs.

Is this generated with LLM sent without any sanity-checking by a human?

Show 13 quoted lines
> diff --git a/t/t0008-ignores.sh b/t/t0008-ignores.sh
> index db8bde280e..18e048ee8c 100755
> --- a/t/t0008-ignores.sh
> +++ b/t/t0008-ignores.sh
> @@ -946,7 +946,7 @@ test_expect_success SYMLINKS 'symlinks respected in info/exclude' '
>  '
>  
>  test_expect_success SYMLINKS 'symlinks not respected in-tree' '
> -	test_when_finished "rm .gitignore" &&
> +	test_when_finished "rm -rf subdir .gitignore" &&
>  	ln -s ignore .gitignore &&
>  	mkdir subdir &&
>  	ln -s ignore subdir/.gitignore &&
Previous: Mirko FainaNext: Mirko Faina
Message 2 of 7 in “t0008: fix "large exclude file ignored in tree"”
  1. t0008: fix "large exclude file ignored in tree"Mirko Faina, Mar 15, 2026
  2. Junio C HamanoMar 15, 2026
  3. Mirko FainaMar 15, 2026
  4. Junio C HamanoMar 15, 2026
  5. t0008: improve test cleanup to fix failing testMirko Faina, Mar 16, 2026
  6. Mirko FainaMar 16, 2026
  7. Junio C HamanoMar 16, 2026

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.