config: use the right API to access git-submodule
Differential Revision: https://phab.mercurial-scm.org/D9923
--- a/hgext/convert/git.py Fri Jan 29 14:03:39 2021 +0100
+++ b/hgext/convert/git.py Sat Jan 30 00:36:54 2021 +0100
@@ -247,7 +247,8 @@
b'\n'.join(line.strip() for line in content.split(b'\n')),
)
for sec in c.sections():
- s = c[sec]
+ # turn the config object into a real dict
+ s = dict(c.items(sec))
if b'url' in s and b'path' in s:
self.submodules.append(submodule(s[b'path'], b'', s[b'url']))