We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 835e711 + 52de16a commit 8ca94fcCopy full SHA for 8ca94fc
pygit2/config.py
@@ -63,7 +63,7 @@ def next(self):
63
64
def __next__(self):
65
entry = self._next_entry()
66
- return entry.name
+ return entry
67
68
69
class ConfigMultivarIterator(ConfigIterator):
test/test_config.py
@@ -173,8 +173,9 @@ def test_iterator(self):
173
config = self.repo.config
174
lst = {}
175
176
- for name in config:
177
- lst[name] = config[name]
+ for entry in config:
+ self.assertGreater(entry.level, -1)
178
+ lst[entry.name] = entry.value_string
179
180
self.assertTrue('core.bare' in lst)
181
self.assertTrue(lst['core.bare'])
0 commit comments