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

Re: [PATCH v2 1/4] t4014: more tests about appending s-o-b lines

From
Torsten Bögershausen <tboegi@web.de>
Date
Dec 2, 2012, 07:06 UTC
Message-ID
<50BAFE04.4080100@web.de>
In-Reply-To
<1353602289-9418-2-git-send-email-pclouds@gmail.com>
On 22.11.12 17:38, Nguyễn Thái Ngọc Duy wrote:
Show 6 quoted lines
> 
> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
> ---
>  t/t4014-format-patch.sh | 145 ++++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 145 insertions(+)
> +	echo -n subject | append_signoff >actual &&

"echo -n" is not portable, and we use printf everywhere. I found one "echo -n" in line 996.

Can we squeeze that in, before going to next?
diff --git a/t/t4014-format-patch.sh b/t/t4014-format-patch.sh
index 6cfad13..f460930 100755
--- a/t/t4014-format-patch.sh
+++ b/t/t4014-format-patch.sh
@@ -993,7 +993,7 @@ EOF
 '
 
 test_expect_success 'signoff: commit with only subject that does not end with NL' '
-       echo -n subject | append_signoff >actual &&
+       printf subject | append_signoff >actual &&
        cat >expected <<\EOF &&
 4:Subject: [PATCH] subject
 8:
Previous: Nguyễn Thái Ngọc DuyNext: Brandon Casey
Message 4 of 9 in “Re: Topics currently in the Stalled category”
  1. Nguyen Thai Ngoc DuyNov 22, 2012
  2. 0/4 nd/unify-appending-of-s-o-bNguyễn Thái Ngọc Duy, Nov 22, 2012
  3. 1/4 t4014: more tests about appending s-o-b linesNguyễn Thái Ngọc Duy, Nov 22, 2012
  4. Torsten BögershausenDec 2, 2012
  5. Brandon CaseyDec 2, 2012
  6. 2/4 format-patch: stricter S-o-b detectionNguyễn Thái Ngọc Duy, Nov 22, 2012
  7. 3/4 format-patch: update append_signoff prototypeNguyễn Thái Ngọc Duy, Nov 22, 2012
  8. 4/4 Unify appending signoff in format-patch, commit and sequencerNguyễn Thái Ngọc Duy, Nov 22, 2012
  9. Junio C HamanoNov 24, 2012

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.