diff --git a/git/config.py b/git/config.py index f530bac89..57c9f7b15 100644 --- a/git/config.py +++ b/git/config.py @@ -549,7 +549,13 @@ def get_value(self, section, option, default=None): return valuestr def _value_to_string(self, value): - if isinstance(value, (int, float, bool)): + # git expects bool to be lower case true or false + if isinstance(value, bool): + if value: + return 'true' + else: + return 'false' + if isinstance(value, (int, float)): return str(value) return force_text(value)