# HG changeset patch # User Pierre-Yves David # Date 2021-01-29 23:36:54 # Node ID f7621fa14b849ba79e6624beaff03b6a9e7d5592 # Parent 5272542196cc6d7ee05f33fe5abd9c006a964650 config: use the right API to access git-submodule Differential Revision: https://phab.mercurial-scm.org/D9923 diff --git a/hgext/convert/git.py b/hgext/convert/git.py --- a/hgext/convert/git.py +++ b/hgext/convert/git.py @@ -247,7 +247,8 @@ class convert_git(common.converter_sourc 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']))