Explorar el Código

dulwich.client: fix fetch if no progress function is specified

Change-Id: I0627b9bea8d7259984fb6587a877bb027dde7367
Augie Fackler hace 15 años
padre
commit
c873739c92
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      dulwich/client.py

+ 2 - 1
dulwich/client.py

@@ -240,7 +240,8 @@ class GitClient(object):
             if channel == 1:
             if channel == 1:
                 pack_data(pkt)
                 pack_data(pkt)
             elif channel == 2:
             elif channel == 2:
-                progress(pkt)
+                if progress is not None:
+                    progress(pkt)
             else:
             else:
                 raise AssertionError("Invalid sideband channel %d" % channel)
                 raise AssertionError("Invalid sideband channel %d" % channel)
         return refs
         return refs