瀏覽代碼

Merge branch 'github-fix' of git://github.com/sid0/dulwich

Jelmer Vernooij 11 年之前
父節點
當前提交
1a62b90b0f
共有 1 個文件被更改,包括 0 次插入8 次删除
  1. 0 8
      dulwich/client.py

+ 0 - 8
dulwich/client.py

@@ -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):
@@ -400,10 +396,6 @@ class GitClient(object):
                 # Just ignore progress data
                 progress = lambda x: None
             self._read_side_band64k_data(proto, {1: pack_data, 2: progress})
-            # wait for EOF before returning
-            data = proto.read()
-            if data:
-                raise Exception('Unexpected response %r' % data)
         else:
             while True:
                 data = proto.read(rbufsize)