git_config: handle configuration entries with no values

A git-config entry with no value was preventing repo
from initializing.  This modifies _ReadGit() to handle
config entries with empty values.

Signed-off-by: David Aguilar <davvid@gmail.com>
Reported-by: Josh Guilfoyle <jasta00@gmail.com>
This commit is contained in:
David Aguilar
2009-06-28 15:09:16 -07:00
parent e020ebee4e
commit 438c54713a
3 changed files with 59 additions and 8 deletions

3
tests/fixtures/test.gitconfig vendored Normal file
View File

@@ -0,0 +1,3 @@
[section]
empty
nonempty = true