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

Re: [PATCH v2] send-email: clarify missing subject error

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 10, 2026, 21:09 UTC
Message-ID
<xmqqtsp165tj.fsf@gitster.g>
In-Reply-To
<pull.2375.v2.git.git.1786384412423.gitgitgadget@gmail.com>
"Harald Nordgren via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 12 quoted lines
> +test_expect_success $PREREQ 'missing subject omits Perl location' '
> +	cat >no-subject.patch <<-\EOF &&
> +	This is the body.
> +	EOF
> +	test_must_fail git send-email \
> +		--dry-run \
> +		--from="Example <nobody@example.com>" \
> +		--to=nobody@example.com \
> +		no-subject.patch 2>actual &&
> +	cat >expect <<-\EOF &&
> +	No '\''Subject:'\'' line in '\''no-subject.patch'\''
> +	EOF

OK. We require the message to exactly be this one (not starting with this substring), which makes sure we are not getting the line numbers from die. Good.

Will queue.  This round looks perfect.  Let's mark it for 'next'.
Thanks.
Previous: Harald Nordgren via GitGitGadget
Message 6 of 6 in “send-email: clarify missing subject error”
  1. send-email: clarify missing subject errorHarald Nordgren via GitGitGadget, Aug 9, 2026
  2. Junio C HamanoAug 9, 2026
  3. Harald NordgrenAug 10, 2026
  4. Junio C HamanoAug 10, 2026
  5. send-email: clarify missing subject errorHarald Nordgren via GitGitGadget, Aug 10, 2026
  6. Junio C HamanoAug 10, 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.