git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
KOKnut Omang <knut.omang@oracle.com>
Date
Apr 2, 2017, 05:47 UTC
Message-ID
<1491112043.5830.11.camel@oracle.com>
Hi,
From the documentation I would have expected 
git config --local user.email=alt.email@alt.domain
to create a section 
[user]
	email=alt.email@alt.domain
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: knut.omang@oracle.com | Phone:  +47 41 46 22 10
Next: Jeff King
Message 1 of 3 in “Bug: 'git config --local user.email=<alt.email>' fails silently?”
  1. Knut OmangApr 2, 2017
  2. Jeff KingApr 2, 2017
  3. Knut OmangApr 2, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.