changeset 15:5a98480a0806

ignoring submodule entries
author Scott Chacon <schacon@gmail.com>
date Sun, 26 Apr 2009 17:22:55 -0700
parents 36e94e805fa7
children 58cd05129119
files dulwich/repo.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dulwich/repo.py	Sun Apr 26 16:25:04 2009 -0700
+++ b/dulwich/repo.py	Sun Apr 26 17:22:55 2009 -0700
@@ -355,6 +355,8 @@
             csha = None
             ctree = None
             for (bmode, bname, bsha) in basetree.entries():
+                if bmode == 57344: # TODO : properly handle submodules
+                    continue
                 bobj = self.get_object(bsha)
                 if comptree:
                     (cmode, csha) = comptree.entry(bname)