]> git.ipfire.org Git - thirdparty/git.git/commit - git-send-email.perl
send-email: avoid empty transfer encoding header
authorAaron Lindsay <aaron@aclindsay.com>
Fri, 2 Nov 2018 09:52:38 +0000 (05:52 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 2 Nov 2018 14:59:53 +0000 (23:59 +0900)
commit3c88e46f1a4328f594cbdcd6109034d9fb9a1b56
tree373325f04bf76dee5fa8292c3963fb5c27fb8f68
parentfa29f36d990df8cd42f323847245ab2ae0f0ae62
send-email: avoid empty transfer encoding header

Fix a small bug introduced by "7a36987ff (send-email: add an auto option
for transfer encoding, 2018-07-14)".

I saw the following message when setting --transfer-encoding for a file
with the same encoding:

    $ git send-email --transfer-encoding=8bit example.patch
    Use of uninitialized value $xfer_encoding in concatenation (.) or string
    at /usr/lib/git-core/git-send-email line 1744.

The new tests are by brian m. carlson.

Signed-off-by: Aaron Lindsay <aaron@aclindsay.com>
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-send-email.perl
t/t9001-send-email.sh