Changeset 65aab9c0be6c…
Parent 0fdbdbb267a0…
by
Changes to one file · Browse files at 65aab9c0be6c Showing diff from parent 0fdbdbb267a0 Diff from another changeset...
@@ -36,6 +36,7 @@ Tree,
hex_to_sha,
sha_to_hex,
+ S_ISGITLINK,
)
from dulwich.pack import (
Pack,
@@ -505,7 +506,7 @@ self.objects_to_send.update([e for e in entries if not e[0] in self.sha_done])
def parse_tree(self, tree):
- self.add_todo([(sha, name, not stat.S_ISDIR(mode)) for (mode, name, sha) in tree.entries()])
+ self.add_todo([(sha, name, not stat.S_ISDIR(mode)) for (mode, name, sha) in tree.entries() if not S_ISGITLINK(mode)])
def parse_commit(self, commit):
self.add_todo([(commit.tree, "", False)])
|
Loading...