This issue is not same as \"Bad git config file .git/config\", since it failed when using git init
.
It seems there is nothing wrong with /home/mirror/.gitco
Note that it can be problematic identifying the issue, considering the problem is at:
default = simple
), Solutions:
git config --global push.default matching
)git config --global --unset-all push.default
)But most importantly, starting git 2.2 (Q4 2014), the git config error line number will be accurate.
See commit b3b3f60, by Matthieu Moy (moy):
config.c
: fix accuracy of line number in errorsIf a callback returns a negative value to
git_config*()
family, they calldie()
while printing the line number and the file name.
Currently the printed line number is off by one, thus printing the wrong line number.Make
linenr
point to the line we just parsed during the call to callback to get accurate line number in error messages.