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

Re: [PATCH 2/2] git-send-email: add --transfer-encoding option

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 25, 2014, 23:37 UTC
Message-ID
<xmqq7fyisvgj.fsf@gitster.dls.corp.google.com>
In-Reply-To
<CAPig+cQ_jm1W3n7KqrRihuj7ie=wGTRMupyAnfLHXqFAAnhv4Q@mail.gmail.com>
Eric Sunshine <sunshine@sunshineco.com> writes:
Show 24 quoted lines
>> +test_expect_success $PREREQ 'sendemail.transferencoding=7bit fails on 8bit data' '
>> +       clean_fake_sendmail &&
>> +       git config sendemail.transferEncoding 7bit &&
>
> test_config here and elsewhere perhaps?
> ...
>
>> +       test_must_fail git send-email \
>> +         --transfer-encoding=7bit \
>
> Redundant 7bit request.
>
>> +         --smtp-server="$(pwd)/fake.sendmail" \
>> +         email-using-8bit \
>> +         2>errors >out &&
>> +       grep "cannot send message as 7bit" errors &&
>> +       test -z "$(ls msgtxt*)"
>> +'
>> +
>> +test_expect_success $PREREQ '--transfer-encoding overrides sendemail.transferEncoding' '
>> +       clean_fake_sendmail &&
>> +       git config sendemail.transferEncoding 8bit
>
> Broken &&-chain.
Thanks for a careful reading ;-).

The original before this patch is written in old 2005 style, which makes it rather hard to read and add new tests to mimick the existing tests. Perhaps we would need to clean it up at some point, probably after the dust settles after this series is done.

Previous: Eric Sunshine
Message 5 of 5 in “git-send-email: add --transfer-encoding option for conversion to specified encoding”
  1. 0/2 git-send-email: add --transfer-encoding option for conversion to specified encodingPaolo Bonzini, Nov 25, 2014
  2. 1/2 git-send-email: delay creation of MIME headersPaolo Bonzini, Nov 25, 2014
  3. 2/2 git-send-email: add --transfer-encoding optionPaolo Bonzini, Nov 25, 2014
  4. Eric SunshineNov 25, 2014
  5. Junio C HamanoNov 25, 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.