소스 검색

Support error lines with ERROR: as well.

Jelmer Vernooij 6 년 전
부모
커밋
ed492ef6f4
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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()