mbox series

[v3,0/1] cat-file: quote-format name in error when using -z

Message ID 20230116190749.4141516-1-toon@iotcl.com (mailing list archive)
Headers show
Series cat-file: quote-format name in error when using -z | expand

Message

Toon Claes Jan. 16, 2023, 7:07 p.m. UTC
Hi there,

This third revision of this patch fixes broken test case that was added in
t1006.

Toon Claes (1):
  cat-file: quote-format name in error when using -z

 builtin/cat-file.c  | 19 +++++++++++++++++++
 t/t1006-cat-file.sh |  8 ++++++++
 2 files changed, 27 insertions(+)

Range-diff against v2:
1:  4f39eb0719 ! 1:  a56932572c cat-file: quote-format name in error when using -z
    @@ t/t1006-cat-file.sh: test_expect_success FUNNYNAMES '--batch-check, -z with newl
      '

     +test_expect_success '--batch-check, -z with newline in non-existent named object' '
    -+	printf "HEAD:newline${LF}embedded" >in &&
    ++	printf "HEAD:newline${LF}missing" >in &&
     +	git cat-file --batch-check -z <in >actual &&
     +
    -+	printf "\"HEAD:newline\\\\nembedded\" missing\n" >expect &&
    ++	printf "\"HEAD:newline\\\\nmissing\" missing\n" >expect &&
     +	test_cmp expect actual
     +'
     +
--
2.39.0.rc0.57.g2e71cbbddd.dirty