a problem with the gitconfig file for user.email
why is it necessary to have a <TAB> before the email keyword in the [user] section? Other keywords work with whitespace.
If not, one get the error message:
fatal: bad config file line 2 in /home/guy-kde/.gitconfig
Quoted 2 lines · Guy Maurel
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).
Quoted 2 lines
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).
Signature · 2 lines
Matthieu Moy http://www-verimag.imag.fr/~moy/
Quoted 5 lines · Matthieu Moy
Quoted 2 lines · Guy Maurel
why is it necessary to have a <TAB> before the email keyword in the [user] section?
Quoted 8 lines
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).
Quoted 2 lines
If not, one get the error message:
fatal: bad config file line 2 in/home/guy-kde/.gitconfigPlease, 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.
Hello!
Thanks for helping, but...
Quoted 5 lines · Junio C Hamano
Quoted 4 lines · Matthieu Moy
Quoted 2 lines · Guy Maurel
why is it necessary to have a <TAB> before the email keyword in the [user] section?
Quoted 8 lines
Quoted 8 lines
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).
Quoted 2 lines
If not, one get the error message:
fatal: bad config file line 2 in/home/guy-kde/.gitconfigPlease, 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 = [email protected]
^^ these are spaces
Quoted 6 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 [email protected] I got a <TAB> before the email keyword, this leads me to my question.
Thanks for helping
Signature · 1 line
guy