Mercurial > hg > hg-git
changeset 229:f2c2061aacd1
work around a bug in dulwich 0.3.3
author | Abderrahim Kitouni <a.kitouni@gmail.com> |
---|---|
date | Tue, 28 Jul 2009 23:12:38 +0100 |
parents | e720950443d8 |
children | 51e4d6ebbc40 |
files | git_handler.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/git_handler.py +++ b/git_handler.py @@ -696,13 +696,13 @@ changes = list() csha = None cmode = None - if basetree: + if basetree is not None: for (bmode, bname, bsha) in basetree.entries(): if bmode == 0160000: # TODO: properly handle submodules continue basefiles.add(bname) bobj = self.git.get_object(bsha) - if comptree: + if comptree is not None: if bname in comptree: (cmode, csha) = comptree[bname] else: @@ -719,7 +719,7 @@ prefix + bname + '/')) # handle removals - if comptree: + if comptree is not None: for (bmode, bname, bsha) in comptree.entries(): if bmode == 0160000: # TODO: handle submodles continue