This patch fix only troubles with git send mail. Based on upstream commit: 8d66b3f930dc6d88b524d103e304308ae73a46e7
Fix based on blead patches: 8d66b3f930dc6d88b524d103e304308ae73a46e7 f178b03ba25ce69b2031fa5b9fabbb5c69482ad2 112a1457c05eac6b69395fa04d5d1fdca4a73702 fd6f5a1139dc6174b46967a3118e987bea27396a