Open cjwatson opened 3 months ago
Thanks a lot for reporting!
The config parser here is based on the INI config parser, which makes it very much non-conforming to the Git specification. Fixes on top of that can certainly be done though, hoping they won't introduce more problems than they solve.
My
~/.gitconfig
starts like this:It's been like that for a long time, so I don't remember whether an old version of
git config
wrote it like that, or whether I put it there by hand. Anyway,git
itself has always been fine with this. The relevant part of git-config(1) says:But when I create a commit using
IndexFile.commit()
, I get this in the commit metadata, which I'm pretty sure is malformed:Author: "Colin Watson" <"cjwatson@debian.org">
I think
GitConfigParser
should match the parsing rules thatgit config
follows.