Don't wait for EOF in _handle_receive_pack_tail
authorSiddharth Agarwal <sid0@fb.com>
Sat, 12 Apr 2014 07:03:11 +0000 (00:03 -0700)
committerSiddharth Agarwal <sid0@fb.com>
Sat, 12 Apr 2014 21:14:58 +0000 (14:14 -0700)
This is the same as the previous commit, except it makes receive-pack (i.e. git
push) to a GitHub repository work again.

dulwich/client.py

index bd75c0ad7f2a199edddb59119fb422380833083b..d4272c51d30d02aadaee9797ecde97964815c6d7 100644 (file)
@@ -334,10 +334,6 @@ class GitClient(object):
                     self._report_status_parser.handle_packet(pkt)
         if self._report_status_parser is not None:
             self._report_status_parser.check()
-        # wait for EOF before returning
-        data = proto.read()
-        if data:
-            raise SendPackError('Unexpected response %r' % data)
 
     def _handle_upload_pack_head(self, proto, capabilities, graph_walker,
                                  wants, can_read):