2
0
Эх сурвалжийг харах

Fix build without extensions.

Jelmer Vernooij 16 жил өмнө
parent
commit
2b0698ac25
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      dulwich/objects.py

+ 2 - 2
dulwich/objects.py

@@ -329,7 +329,7 @@ class Tag(ShaFile):
 
 
 def parse_tree(text):
-    ret = []
+    ret = {}
     count = 0
     while count < len(text):
         mode = 0
@@ -350,7 +350,7 @@ def parse_tree(text):
         chr = text[count]
         sha = text[count:count+20]
         hexsha = sha_to_hex(sha)
-        ret.append((mode, name, hexsha))
+        ret[name] = (mode, hexsha)
         count = count + 20
     return ret