git: use safe configparser for git submodules to prevent from errors on submodules with % sign.

- This is treated as interpolation sign and can cause errors on regular ConfigParser instance.
This commit is contained in:
Marcin Kuzminski 2020-02-20 11:28:18 +01:00
parent 3b5d294eac
commit 54a47cd524

View file

@ -472,7 +472,7 @@ class GitCommit(base.BaseCommit):
for line in _content.splitlines():
yield line
parser = configparser.ConfigParser()
parser = configparser.RawConfigParser()
parser.read_file(iter_content(submodules_node.content))
for section in parser.sections():