Преглед изворни кода

Upload pack: We have to wait for the client to close the connection by itself.

Most versions of Git freakout if we close the connection ourselves,
and will not create an empty repository on clone.
Damien Tournoud пре 11 година
родитељ
комит
4f16a58ec6
1 измењених фајлова са 0 додато и 4 уклоњено
  1. 0 4
      dulwich/server.py

+ 0 - 4
dulwich/server.py

@@ -411,10 +411,6 @@ class ProtocolGraphWalker(object):
         :param heads: a dict of refname->SHA1 to advertise
         :return: a list of SHA1s requested by the client
         """
-        if not heads:
-            # The repo is empty, so short-circuit the whole process.
-            self.proto.write_pkt_line(None)
-            return []
         values = set(heads.itervalues())
         if self.advertise_refs or not self.http_req:
             for i, (ref, sha) in enumerate(sorted(heads.iteritems())):