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

Re: [PATCH v4 2/2] test/send-email: to-cover, cc-cover tests

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 29, 2014, 19:01 UTC
Message-ID
<xmqqppk0j6yx.fsf@gitster.dls.corp.google.com>
In-Reply-To
<1398750059-11955-2-git-send-email-mst@redhat.com>
"Michael S. Tsirkin" <mst@redhat.com> writes:
Show 24 quoted lines
> Add tests for the new feature.
>
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> ---
>  t/t9001-send-email.sh | 45 +++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 45 insertions(+)
>
> diff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh
> index 1ecdacb..97cc094 100755
> --- a/t/t9001-send-email.sh
> +++ b/t/t9001-send-email.sh
> @@ -1334,6 +1334,51 @@ test_expect_success $PREREQ '--force sends cover letter template anyway' '
>  	test -n "$(ls msgtxt*)"
>  '
>  
> +test_cover_addresses () {
> +	header="$1"
> +	shift
> +	clean_fake_sendmail &&
> +	rm -fr outdir &&
> +	git format-patch --cover-letter -2 -o outdir &&
> +	cover=`echo outdir/0000-*.patch` &&
> +	mv $cover cover-to-edit.patch &&
> +	sed "s/^From:/$header: extra@address.com\nFrom:/" cover-to-edit.patch > $cover &&
Please do the redirection like this:
	sed "s/^From:/$header: extra@address.com\nFrom:/" cover-to-edit.patch >"$cover" &&

in your later patches (I'll tweak this patch myself, so no need to resend). We know >$cover should be the same as >"$cover", but it was reported that some version of bash does not know it and complains instead (see Documentation/CodingGuidelines).

Previous: Michael S. TsirkinNext: Michael S. Tsirkin
Message 3 of 4 in “git-send-email: two new options: to-cover, cc-cover”
  1. 1/2 git-send-email: two new options: to-cover, cc-coverMichael S. Tsirkin, Apr 29, 2014
  2. 2/2 test/send-email: to-cover, cc-cover testsMichael S. Tsirkin, Apr 29, 2014
  3. Junio C HamanoApr 29, 2014
  4. Michael S. TsirkinApr 29, 2014

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.