diff --git a/git/config.py b/git/config.py index 209f2ffef..31226fa63 100644 --- a/git/config.py +++ b/git/config.py @@ -216,6 +216,11 @@ def _read(self, fp, fpname): if line.split(None, 1)[0].lower() == 'rem' and line[0] in "rR": # no leading whitespace continue + # continuation line? + if line[0].isspace() and cursect is not None and optname: + value = line.strip() + if value: + cursect[optname] = "%s\n%s" % (cursect[optname], value) else: # is it a section header? mo = self.SECTCRE.match(line)