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

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

From
GMGuy Maurel <guy-kde@maurel.de>
Date
Mar 15, 2011, 17:45 UTC
Message-ID
<201103151845.52330.guy-kde@maurel.de>
In-Reply-To
<7v8vwihbfx.fsf@alter.siamese.dyndns.org>
Hello!

Thanks for helping, but... On Monday, March 14, 2011 12:01:38 AM Junio C Hamano wrote:

Show 13 quoted lines
> Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:
> > 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).
I had very little things:
[user]
      name = Guy Maurel
      email = guy-kde@maurel.de
^^ these are spaces
Show 6 quoted lines
> 
> 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.

I am using kernel 2.6.37-ARCH and git 1.7.4.1-1 64bits But I cannot reproduce the problem *today*. I am sorry, so sorry. I bet your pardon.

As I made a git config --add user.email guy-kde@maurel.de I got a <TAB> before the email keyword, this leads me to my question.

Thanks for helping
-- 
guy
Previous: Junio C Hamano
Message 4 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.