Subject: Bug: 'git config --local user.email=<alt.email>' fails silently?

From: Knut Omang <[email-masked]>
Date: Sun, 02 Apr 2017 07:47:23 +0200

Hi,

>From the documentation I would have expected 

git config --local user.email=[email-masked]

to create a section 

[user]
	email=[email-masked]

in the local .git/config.

Instead it returns status 1 with no error message.

Is this intentional?

If I add the [user] section manually, it works as expected/desired:
my commits in that tree uses the alternate mail address.

git --version
git version 2.7.4

Thanks,
Knut Omang

-- 
Knut Omang, Ph.D
Principal Software Engineer
Oracle Linux and Virtualization Engineering
ORACLE Norway | Olaf Helsets vei 6 | 0694 Oslo
Email: [email-masked] | Phone:  +47 41 46 22 10