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

Re: [PATCH] t5582: remove spurious 'cd "$D"' line

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 25, 2021, 16:12 UTC
Message-ID
<xmqqsfyxjyfe.fsf@gitster.g>
In-Reply-To
<YSWeeEgzCCT/3kxR@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
> Hmm. I think that one is different, in that the "cd" is not redundant,
> but wrong. But it turns out not to matter to the test. ;)
Funny. 

We are lucky because 'cd ""' stays in the same repository as the current one and not to a random place, and because the current one happens to have no pack and running the command in a repository without any pack is what the test wants to do anyway.

Thanks, will queue.
Show 16 quoted lines
> diff --git a/t/t5323-pack-redundant.sh b/t/t5323-pack-redundant.sh
> index 8b01793845..8dbbcc5e51 100755
> --- a/t/t5323-pack-redundant.sh
> +++ b/t/t5323-pack-redundant.sh
> @@ -114,9 +114,9 @@ test_expect_success 'setup main repo' '
>  	create_commits_in "$main_repo" A B C D E F G H I J K L M N O P Q R
>  '
>  
> -test_expect_success 'master: pack-redundant works with no packfile' '
> +test_expect_success 'main: pack-redundant works with no packfile' '
>  	(
> -		cd "$master_repo" &&
> +		cd "$main_repo" &&
>  		cat >expect <<-EOF &&
>  			fatal: Zero packs found!
>  			EOF
Previous: Jeff KingNext: SZEDER Gábor
Message 6 of 10 in “t5582: remove spurious 'cd "$D"' line”
  1. t5582: remove spurious 'cd "$D"' lineMickey Endito, Aug 23, 2021
  2. Junio C HamanoAug 23, 2021
  3. SZEDER GáborAug 24, 2021
  4. Junio C HamanoAug 24, 2021
  5. Jeff KingAug 25, 2021
  6. Junio C HamanoAug 25, 2021
  7. SZEDER GáborAug 28, 2021
  8. Junio C HamanoAug 30, 2021
  9. Jeff KingAug 30, 2021
  10. Junio C HamanoAug 30, 2021

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.