summaryrefslogtreecommitdiff
path: root/git/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/config.py')
-rw-r--r--git/config.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/git/config.py b/git/config.py
index ed61bf93..38dd1b44 100644
--- a/git/config.py
+++ b/git/config.py
@@ -546,10 +546,12 @@ class GitConfigParser(with_metaclass(MetaParserBuilder, cp.RawConfigParser, obje
:param option: Name of the options whose value to set
:param value: Value to set the option to. It must be a string or convertible
- to a string"""
+ to a string
+ :return: this instance"""
if not self.has_section(section):
self.add_section(section)
self.set(section, option, self._value_to_string(value))
+ return self
def rename_section(self, section, new_name):
"""rename the given section to new_name