summaryrefslogtreecommitdiff
path: root/git/objects/fun.py
diff options
context:
space:
mode:
authorYobmod <yobmod@gmail.com>2021-07-19 16:57:04 +0100
committerYobmod <yobmod@gmail.com>2021-07-19 16:57:04 +0100
commit6609ef7c3b5bb840dba8d0a5362e67746761a437 (patch)
treef79b38acd48927faf21a298bd690eba3b9fbacc2 /git/objects/fun.py
parent29e12e9ceee59a87984c9049ac84e030a4dd0ed2 (diff)
downloadgitpython-6609ef7c3b5bb840dba8d0a5362e67746761a437.tar.gz
Make types in refs compatible with objects
Diffstat (limited to 'git/objects/fun.py')
-rw-r--r--git/objects/fun.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/objects/fun.py b/git/objects/fun.py
index fc2ea1e7..d6cdafe1 100644
--- a/git/objects/fun.py
+++ b/git/objects/fun.py
@@ -167,7 +167,7 @@ def traverse_trees_recursive(odb: 'GitCmdObjectDB', tree_shas: Sequence[Union[by
data: List[EntryTupOrNone] = []
else:
# make new list for typing as list invariant
- data = [x for x in tree_entries_from_data(odb.stream(tree_sha).read())]
+ data = list(tree_entries_from_data(odb.stream(tree_sha).read()))
# END handle muted trees
trees_data.append(data)
# END for each sha to get data for