git-send-email does not use conditional configuration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

In my git configuration, I have an includeif section for work
related repositories that configures the user and sendemail
sections.

I can verify that the configuration is read correctly by git:

% git config --get-regex "sendemail.*"
sendemail.smtpencryption tls
sendemail.smtpserver smtp.office365.com
sendemail.smtpserverport 587
sendemail.smtpuser dalamagkidis@xxxxxxxx

But when running git send-email the default sendmail is used:

% git send-email --dry-run 0001*
[...]
Dry-OK. Log says:
Sendmail: /usr/sbin/sendmail -i test@xxxxxxxxxxx dalamagkidis@xxxxxxxx
From: Konstantinos Dalamagkidis <konstantinos@xxxxxxxxxxxxxxxxx>
To: test@xxxxxxxxxxx
Cc: Konstantinos Dalamagkidis <dalamagkidis@xxxxxxxx>
[...]

If I move the sendemail section to the main gitconfig file, it
works as expected. I normally use v2.20.1, but I could also
reproduce this with v2.23.

Rgds
Konstantinos



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux