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

Re: [PATCH v3] [Outreachy PATCH] t0001: avoid pipes in test scripts

From
SPSrujith Poojary <poojarysrujith@gmail.com>
Date
Oct 23, 2026, 16:23 UTC
Message-ID
<CABh_KWjPyBGYg7sTAg5Y7ik=qkDQJCLRHFfCiOr5O+3=mCYBPg@mail.gmail.com>
In-Reply-To
<pull.2260.v3.git.1792732388827.gitgitgadget@gmail.com>
Hi,

I have submitted v3 of the t0001 patch to the mailing list. Just a quick note on the CI: there is a single failure in win test (5), but it is caused by t1051-large-conversion running out of memory during a 5GB conversion test, which is unrelated to the t0001 changes.

The patch is ready for review.

Best regards, Srujith

On Fri, Oct 23, 2026 at 10:43 AM Srujith A Poojary via GitGitGadget <gitgitgadget@gmail.com> wrote:

Show 50 quoted lines
>
> From: Srujith Poojary <poojarysrujith@gmail.com>
>
> Avoid piping output from git version directly into sed to ensure
>
> that any command failure is properly caught by test scripts.
>
> Signed-off-by: Srujith Poojary <poojarysrujith@gmail.com>
> ---
>     [Outreachy PATCH] t0001: avoid pipes in test scripts
>
> Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-2260%2Fpoojarysrujith%2Fmicroproject-init-pipe-v3
> Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-2260/poojarysrujith/microproject-init-pipe-v3
> Pull-Request: https://github.com/gitgitgadget/git/pull/2260
>
> Range-diff vs v2:
>
>  1:  7d118290ce ! 1:  a70ccdf49e [Outreachy PATCH] t0001: avoid pipes in test scripts
>      @@ t/t0001-init.sh: test_expect_success 'default ref format' '
>         ) &&
>       - git version --build-options | sed -ne "s/^default-ref-storage-format: //p" >expect &&
>       + git version --build-options >build-options &&
>      -+         sed -ne "s/^default-ref-storage-format: //p" build-options >expect &&
>      ++ sed -ne "s/^default-ref-storage-format: //p" build-options >expect &&
>         git -C refformat rev-parse --show-ref-storage-format >actual &&
>         test_cmp expect actual
>        '
>
>
>  t/t0001-init.sh | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/t/t0001-init.sh b/t/t0001-init.sh
> index f1d227f271..c8c74f681b 100755
> --- a/t/t0001-init.sh
> +++ b/t/t0001-init.sh
> @@ -678,7 +678,8 @@ test_expect_success 'default ref format' '
>                 sane_unset GIT_DEFAULT_REF_STORAGE_FORMAT &&
>                 git init refformat
>         ) &&
> -       git version --build-options | sed -ne "s/^default-ref-storage-format: //p" >expect &&
> +       git version --build-options >build-options &&
> +       sed -ne "s/^default-ref-storage-format: //p" build-options >expect &&
>         git -C refformat rev-parse --show-ref-storage-format >actual &&
>         test_cmp expect actual
>  '
>
> base-commit: 6de20f6092dcf9bdb1c8efe03db4b70c82b423dd
> --
> gitgitgadget
Previous: Srujith A Poojary via GitGitGadgetNext: Patrick Steinhardt
Message 8 of 13 in “t0001: avoid pipes in test scripts”
  1. [Outreachy PATCH] t0001: avoid pipes in test scriptsSrujith A Poojary via GitGitGadget, Oct 18, 2026
  2. Usman AkinyemiOct 21, 2026
  3. [Outreachy PATCH] t0001: avoid pipes in test scriptsSrujith A Poojary via GitGitGadget, Oct 22, 2026
  4. Srujith PoojaryOct 22, 2026
  5. Junio C HamanoOct 22, 2026
  6. Srujith PoojaryOct 23, 2026
  7. [Outreachy PATCH] t0001: avoid pipes in test scriptsSrujith A Poojary via GitGitGadget, Oct 23, 2026
  8. Srujith PoojaryOct 23, 2026
  9. Patrick SteinhardtOct 29, 2026
  10. Srujith PoojaryOct 29, 2026
  11. [Outreachy PATCH] t0001: avoid pipes in test scriptsSrujith A Poojary via GitGitGadget, Oct 29, 2026
  12. Patrick SteinhardtOct 30, 2026
  13. Srujith PoojaryOct 30, 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.