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

Re: [PATCH] t4129: prevent loss of exit code due to the use of pipes

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 10, 2024, 17:25 UTC
Message-ID
<xmqqwmshcd8r.fsf@gitster.g>
In-Reply-To
<pull.1636.git.1704891257544.gitgitgadget@gmail.com>
"Chandra Pratap via GitGitGadget" <gitgitgadget@gmail.com> writes:
>  t/t4129-apply-samemode.sh | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)

Looks good. Will queue with two instances of a minor style fix (see below).

Show 10 quoted lines
> diff --git a/t/t4129-apply-samemode.sh b/t/t4129-apply-samemode.sh
> index e7a7295f1b6..ffabeafa213 100755
> --- a/t/t4129-apply-samemode.sh
> +++ b/t/t4129-apply-samemode.sh
> @@ -41,7 +41,8 @@ test_expect_success FILEMODE 'same mode (index only)' '
>  	chmod +x file &&
>  	git add file &&
>  	git apply --cached patch-0.txt &&
> -	git ls-files -s file | grep "^100755"
> +	git ls-files -s file > ls-files-output &&

Redirection operator ">" and "<" sticks to the file in question (look for "> " and "< " in this file and you'd find none), i.e.

	git ls-files -s file >ls-files-output &&
Thanks.
Previous: Chandra Pratap via GitGitGadget
Message 2 of 2 in “t4129: prevent loss of exit code due to the use of pipes”
  1. t4129: prevent loss of exit code due to the use of pipesChandra Pratap via GitGitGadget, Jan 10, 2024
  2. Junio C HamanoJan 10, 2024

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.