2
0
Эх сурвалжийг харах

Fix handling of hostname on Python3. #367

Jelmer Vernooij 9 жил өмнө
parent
commit
38ce15fdb1
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  1. 2 1
      dulwich/client.py

+ 2 - 1
dulwich/client.py

@@ -637,7 +637,8 @@ class TCPGitClient(TraditionalGitClient):
                          report_activity=self._report_activity)
         if path.startswith(b"/~"):
             path = path[1:]
-        proto.send_cmd(b'git-' + cmd, path, b'host=' + self._host)
+        # TODO(jelmer): Alternative to ascii?
+        proto.send_cmd(b'git-' + cmd, path, b'host=' + self._host.encode('ascii'))
         return proto, lambda: _fileno_can_read(s)