浏览代码

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