Re: Question - no space in smtp-server-option

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

 



On Sep-16-18, Jonathan Nieder wrote:
On Mon, Sep 17, 2018 at 03:27:21AM +0200, Chris Coutinho wrote:
On Sep-16-18, Jonathan Nieder wrote:
Chris Coutinho wrote:

Currently my gitconfig contains the following line:

	sendemail.smtpserveroption=-a<myaccount>

Whereas, the following results in an 'account' not found error:

	sendemail.smtpserveroption=-a <myaccount>

Do you mean that your ~/.gitconfig literally contains that exact line?
[...]
Yes that's the exact line in my gitconfig file, which correctly mails using
the non-default account I'm after - I'm assuming you're noticing the lack of
camelCase? To be honest, that came from zsh autosuggestions, which are all
lower-case for some reason.

No, case shouldn't matter.  I'm noticing the it looks like

	foo.bar=baz

instead of

	[foo]
		bar = baz

(i.e. it seems to be some syntax other than ini syntax).  E.g. I tried

	echo a.b=c >test.config
	git config -f test.config -l

and get

	fatal: bad config line 1 in file test.config

Thanks,
Jonathan

Hi Jonathan,

Sorry for the inconsistency, you're write about the gitconfig syntax. I was actually printing out the config using `git config --local --list`. The actual config file has the two lines:

[sendemail]
	smtpserveroption = -a<myaccount>

Regards,
Chris

Attachment: signature.asc
Description: PGP signature


[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