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

Re: a problem with the gitconfig file for user.email

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 13, 2011, 23:01 UTC
Message-ID
<7v8vwihbfx.fsf@alter.siamese.dyndns.org>
In-Reply-To
<vpqy64iy7r3.fsf@bauges.imag.fr>
Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:
Show 13 quoted lines
> Guy Maurel <guy-kde@maurel.de> writes:
>
>> why is it necessary to have a <TAB> before the email keyword in the [user]
>> section?
>
> It isn't. I've just checked with email right at the beginning of the
> line, without tab or space, and it works (with the latest git.git).
>
>> If not, one get the error message:
>>   fatal: bad config file line 2 in /home/guy-kde/.gitconfig
>
> Please, give a short and reproducible senario (eg. the full content of
> .gitconfig, and the command you've typed to get this).

Good suggestion. I suspect this is some third party programs or hooks that are trying to hand parse the config file. In the distant past, some of our perl based Porcelains may have done so but I think these days everything we ship should be reading from "git config" output or calling git_config() from C.

Previous: Matthieu MoyNext: Guy Maurel
Message 3 of 4 in “a problem with the gitconfig file for user.email”
  1. Guy MaurelMar 13, 2011
  2. Matthieu MoyMar 13, 2011
  3. Junio C HamanoMar 13, 2011
  4. Guy MaurelMar 15, 2011

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.