summaryrefslogtreecommitdiffstats
path: root/gitsrht/git.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitsrht/git.py')
-rw-r--r--gitsrht/git.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/gitsrht/git.py b/gitsrht/git.py
index 066aca7..e6808b9 100644
--- a/gitsrht/git.py
+++ b/gitsrht/git.py
@@ -98,9 +98,7 @@ class AnnotatedTreeEntry:
return f"<AnnotatedTreeEntry {self.name} {self.id}>"
def annotate_tree(repo, tree, commit):
- tree = { entry.id.hex: AnnotatedTreeEntry(
- repo, entry) for entry in tree }
- return [entry.fetch_blob() for entry in tree.values()]
+ return [AnnotatedTreeEntry(repo, entry).fetch_blob() for entry in tree]
# TODO: This is slow and broken
key = f"git.sr.ht:git:tree:{tree.id.hex}"