Support error lines with ERROR: as well.
authorJelmer Vernooij <jelmer@jelmer.uk>
Fri, 28 Sep 2018 05:03:19 +0000 (06:03 +0100)
committerJelmer Vernooij <jelmer@jelmer.uk>
Fri, 28 Sep 2018 05:03:19 +0000 (06:03 +0100)
dulwich/client.py

index 7bfab87d453951e94ed8d2c1f0856066d358bb45..8fec406b2d3eb4342d6164bd4d59757ff637860a 100644 (file)
@@ -643,6 +643,7 @@ def remote_error_from_stderr(stderr):
     for l in stderr.readlines():
         if l.startswith(b'ERROR: '):
             return GitProtocolError(l[len(b'ERROR: '):].decode('utf-8', 'replace'))
+        return GitProtocolError(l.decode('utf-8', 'replace'))
     return HangupException()