{"thread":{"id":"26724","subject":"a problem with the gitconfig file for user.email","startedAt":"2011-03-13T17:32:52Z","lastAt":"2011-03-15T17:45:51Z","messageCount":4,"participants":["Guy Maurel","Matthieu Moy","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"163293","messageId":"loom.20110313T182907-610@post.gmane.org","threadId":"26724","inReplyTo":null,"subject":"a problem with the gitconfig file for user.email","fromName":"Guy Maurel","fromEmail":"guy-kde@maurel.de","sentAt":"2011-03-13T17:32:52Z","receivedAt":"2011-03-13T17:32:52Z","isPatch":false,"sender":{"key":"guy-kde@maurel.de","avatar":null},"body":"why is it necessary to have a <TAB> before the email keyword in the [user]\nsection? Other keywords work with whitespace.\nIf not, one get the error message:\n  fatal: bad config file line 2 in /home/guy-kde/.gitconfig\n"},{"id":"163298","messageId":"vpqy64iy7r3.fsf@bauges.imag.fr","threadId":"26724","inReplyTo":"loom.20110313T182907-610@post.gmane.org","subject":"Re: a problem with the gitconfig file for user.email","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@grenoble-inp.fr","sentAt":"2011-03-13T22:29:20Z","receivedAt":"2011-03-13T22:29:20Z","isPatch":false,"sender":{"key":"matthieu.moy@grenoble-inp.fr","avatar":"https://gravatar.com/avatar/72c8a2705971a25dfaff23cece15130d405685845d911aedd5667ace277f3fc5?d=mp&s=160"},"body":"Guy Maurel <guy-kde@maurel.de> writes:\n\n> why is it necessary to have a <TAB> before the email keyword in the [user]\n> section?\n\nIt isn't. I've just checked with email right at the beginning of the\nline, without tab or space, and it works (with the latest git.git).\n\n> If not, one get the error message:\n>   fatal: bad config file line 2 in /home/guy-kde/.gitconfig\n\nPlease, give a short and reproducible senario (eg. the full content of\n.gitconfig, and the command you've typed to get this).\n\n-- \nMatthieu Moy\nhttp://www-verimag.imag.fr/~moy/\n"},{"id":"163300","messageId":"7v8vwihbfx.fsf@alter.siamese.dyndns.org","threadId":"26724","inReplyTo":"vpqy64iy7r3.fsf@bauges.imag.fr","subject":"Re: a problem with the gitconfig file for user.email","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2011-03-13T23:01:38Z","receivedAt":"2011-03-13T23:01:38Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:\n\n> Guy Maurel <guy-kde@maurel.de> writes:\n>\n>> why is it necessary to have a <TAB> before the email keyword in the [user]\n>> section?\n>\n> It isn't. I've just checked with email right at the beginning of the\n> line, without tab or space, and it works (with the latest git.git).\n>\n>> If not, one get the error message:\n>>   fatal: bad config file line 2 in /home/guy-kde/.gitconfig\n>\n> Please, give a short and reproducible senario (eg. the full content of\n> .gitconfig, and the command you've typed to get this).\n\nGood suggestion.  I suspect this is some third party programs or hooks\nthat are trying to hand parse the config file.  In the distant past, some\nof our perl based Porcelains may have done so but I think these days\neverything we ship should be reading from \"git config\" output or calling\ngit_config() from C.\n"},{"id":"163401","messageId":"201103151845.52330.guy-kde@maurel.de","threadId":"26724","inReplyTo":"7v8vwihbfx.fsf@alter.siamese.dyndns.org","subject":"Re: a problem with the gitconfig file for user.email","fromName":"Guy Maurel","fromEmail":"guy-kde@maurel.de","sentAt":"2011-03-15T17:45:51Z","receivedAt":"2011-03-15T17:45:51Z","isPatch":false,"sender":{"key":"guy-kde@maurel.de","avatar":null},"body":"Hello!\n\nThanks for helping, but...\nOn Monday, March 14, 2011 12:01:38 AM Junio C Hamano wrote:\n> Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:\n> > Guy Maurel <guy-kde@maurel.de> writes:\n> >> why is it necessary to have a <TAB> before the email keyword in the\n> >> [user] section?\n> > \n> > It isn't. I've just checked with email right at the beginning of the\n> > line, without tab or space, and it works (with the latest git.git).\n> > \n> >> If not, one get the error message:\n> >>   fatal: bad config file line 2 in /home/guy-kde/.gitconfig\n> > \n> > Please, give a short and reproducible senario (eg. the full content of\n> > .gitconfig, and the command you've typed to get this).\nI had very little things:\n[user]\n      name = Guy Maurel\n      email = guy-kde@maurel.de\n^^ these are spaces\n> \n> Good suggestion.  I suspect this is some third party programs or hooks\n> that are trying to hand parse the config file.  In the distant past, some\n> of our perl based Porcelains may have done so but I think these days\n> everything we ship should be reading from \"git config\" output or calling\n> git_config() from C.\nI am using kernel 2.6.37-ARCH and git 1.7.4.1-1 64bits\nBut I cannot reproduce the problem *today*.\nI am sorry, so sorry. I bet your pardon.\n\nAs I made a git config --add user.email  guy-kde@maurel.de\nI got a <TAB> before the email keyword, this leads me to my question.\n\nThanks for helping\n-- \nguy\n"}]}