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.
1 parent 43ab2af commit f9bbdc8Copy full SHA for f9bbdc8
lib/git/objects/tree.py
@@ -40,6 +40,7 @@ class Tree(base.IndexObject, diff.Diffable):
40
# using ascii codes for comparison
41
commit_id = 016
42
blob_id = 010
43
+ symlink_id = 012
44
tree_id = 040
45
46
@@ -117,7 +118,7 @@ def _iter_from_data(self):
117
118
119
mode |= type_id<<12
120
hexsha = sha_to_hex(sha)
- if type_id == self.blob_id:
121
+ if type_id == self.blob_id or type_id == self.symlink_id:
122
yield blob.Blob(self.repo, hexsha, mode, name)
123
elif type_id == self.tree_id:
124
yield Tree(self.repo, hexsha, mode, name)
0 commit comments