summaryrefslogtreecommitdiff
path: root/git/objects/util.py
diff options
context:
space:
mode:
authorYobmod <yobmod@gmail.com>2021-07-09 11:56:16 +0100
committerYobmod <yobmod@gmail.com>2021-07-09 11:56:16 +0100
commit3c6deb002c82c852bbd044fc9af2c1ecc9611efb (patch)
tree6415237f8f1875272b201c14b610df72cb449210 /git/objects/util.py
parent937746291cfdaa40938de03db305b1137c391907 (diff)
downloadgitpython-3c6deb002c82c852bbd044fc9af2c1ecc9611efb.tar.gz
Flatten list_traverse()
Diffstat (limited to 'git/objects/util.py')
-rw-r--r--git/objects/util.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/git/objects/util.py b/git/objects/util.py
index 1c266563..d3f3a622 100644
--- a/git/objects/util.py
+++ b/git/objects/util.py
@@ -328,6 +328,7 @@ class Traversable(object):
# Union[IterableList['Commit'], IterableList['Submodule'], IterableList[Union['Submodule', 'Tree', 'Blob']]]
# NOTE: if is_edge=True, self.traverse returns a Tuple, so should be prevented or flattened?
+ kwargs['as_edge'] = False
out.extend(self.traverse(*args, **kwargs)) # type: ignore
return out