Ver Fonte

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

Change-Id: I0627b9bea8d7259984fb6587a877bb027dde7367
Augie Fackler há 15 anos atrás
pai
commit
c873739c92
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      dulwich/client.py

+ 2 - 1
dulwich/client.py

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