]> dgit.raspbian.org Git - git-annex.git/commit
Fix a potential failure to parse git config
authorJoey Hess <joeyh@joeyh.name>
Mon, 13 Apr 2020 17:05:41 +0000 (13:05 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 13 Apr 2020 17:05:41 +0000 (13:05 -0400)
commitca9c6c5f60378c356a3343471cd54b70e3639318
tree889f29376c5e1f2c6918fbe095539cef37b3fdee
parentfbd78cff6401f928993a449d671c940a9b89cd84
Fix a potential failure to parse git config

Git has an obnoxious special case in git config, a line "foo" is the same
as "foo = true". That means there is no way to examine the output of
git config and tell if it was run with --null or not, since a "foo"
in the first line could be such a boolean, or could be followed by its
value on the next line if --null were used.

So, rather than trying to do such a detection, track the style of config
at all the points where it's generated.
Annex/UUID.hs
CHANGELOG
CmdLine/GitAnnex/Options.hs
Command/Map.hs
Git/Config.hs
Remote/GCrypt.hs
Remote/Git.hs