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

Re: [PATCH] status: add a failing test showing a core.untrackedCache bug

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 27, 2017, 18:09 UTC
Message-ID
<xmqqlghoniuk.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20171222140032.21180-1-avarab@gmail.com>
Ævar Arnfjörð Bjarmason  <avarab@gmail.com> writes:
Show 16 quoted lines
> +status_is_clean() {
> +	>../status.expect &&
> +	git status --porcelain >../status.actual &&
> +	test_cmp ../status.expect ../status.actual
> +}
> +
>  test_lazy_prereq UNTRACKED_CACHE '
>  	{ git update-index --test-untracked-cache; ret=$?; } &&
>  	test $ret -ne 1
> @@ -683,4 +689,43 @@ test_expect_success 'untracked cache survives a commit' '
>  	test_cmp ../before ../after
>  '
>  
> +test_expect_success 'teardown worktree' '
> +    cd ..
> +'
Funny indentation.
Show 13 quoted lines
> +test_expect_success 'setup worktree for symlink test' '
> +	git init worktree-symlink &&
> +	cd worktree-symlink &&
> +	git config core.untrackedCache true &&
> +	mkdir one two &&
> +	touch one/file two/file &&
> +	git add one/file two/file &&
> +	git commit -m"first commit" &&
> +	git rm -rf one &&
> +	ln -s two one &&
> +	git add one &&
> +	git commit -m"second commit"
> +'

This needs SYMLINKS prereq, which in turn means it cannot be tested on certain platforms. I thought Duy's answer was that this does not need to involve a symbolic link at all? If so, perhaps we can have another test that does not need symlink?

Thanks.
Previous: Eric SunshineNext: Ævar Arnfjörð Bjarmason
Message 9 of 12 in “status: add a failing test showing a core.untrackedCache bug”
  1. status: add a failing test showing a core.untrackedCache bugÆvar Arnfjörð Bjarmason, Dec 22, 2017
  2. Duy NguyenDec 25, 2017
  3. Ævar Arnfjörð BjarmasonDec 25, 2017
  4. Duy NguyenDec 26, 2017
  5. Duy NguyenDec 27, 2017
  6. 3/1 update-index doc: note a fixed bug in the untracked cacheÆvar Arnfjörð Bjarmason, Dec 27, 2017
  7. Junio C HamanoDec 27, 2017
  8. Eric SunshineDec 27, 2017
  9. Junio C HamanoDec 27, 2017
  10. Ævar Arnfjörð BjarmasonDec 27, 2017
  11. Duy NguyenDec 28, 2017
  12. Junio C HamanoDec 28, 2017

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.