Parcourir la source

determine_wants must return a list

This patch forces determine_wants to return an empty list
when advertise_refs is True.
Fabien Boucher il y a 11 ans
Parent
commit
d25e1baf21
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      dulwich/server.py

+ 1 - 1
dulwich/server.py

@@ -380,7 +380,7 @@ class ProtocolGraphWalker(object):
             self.proto.write_pkt_line(None)
 
             if self.advertise_refs:
-                return None
+                return []
 
         # Now client will sending want want want commands
         want = self.proto.read_pkt_line()