Show More
@@ -191,7 +191,10 b' class httprepository(wireproto.wirerepos' | |||||
191 | try: |
|
191 | try: | |
192 | try: |
|
192 | try: | |
193 | r = self._call(cmd, data=fp, headers=headers, **args) |
|
193 | r = self._call(cmd, data=fp, headers=headers, **args) | |
194 |
|
|
194 | vals = r.split('\n', 1) | |
|
195 | if len(vals) < 2: | |||
|
196 | raise error.ResponseError(_("unexpected response:"), d) | |||
|
197 | return vals | |||
195 | except socket.error, err: |
|
198 | except socket.error, err: | |
196 | if err.args[0] in (errno.ECONNRESET, errno.EPIPE): |
|
199 | if err.args[0] in (errno.ECONNRESET, errno.EPIPE): | |
197 | raise util.Abort(_('push failed: %s') % err.args[1]) |
|
200 | raise util.Abort(_('push failed: %s') % err.args[1]) |
General Comments 0
You need to be logged in to leave comments.
Login now