Commit Diff


commit - 3f6425401a22f5010346a180a91b7d65d4715c43
commit + f6c9bf1db2d2902e0c4f9ac99825e270f101a794
blob - 0ff1b4f9df05c766e3abee76e6306f8368a7e180
blob + 2a84957be3a96df0fca926bc8625ad83ae9c8230
--- swh/loader/git/loader.py
+++ swh/loader/git/loader.py
@@ -757,6 +757,8 @@ class GitLoader(BaseGitLoader):
                     new_vertices.append(entry_hash)
                     new_edges.append((tree_hash, entry_hash))
                     if mode & stat.S_IFDIR:
+                        if mode & stat.S_IFLNK:
+                            continue  # ignore submodules
                         try:
                             tree = self.pack[entry_hex]
                             subtrees.append(entry_hash)