Explorar o código

Support error lines with ERROR: as well.

Jelmer Vernooij %!s(int64=6) %!d(string=hai) anos
pai
achega
ed492ef6f4
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      dulwich/client.py

+ 1 - 0
dulwich/client.py

@@ -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()