Browse Source

Fix build on Python3.

Jelmer Vernooij 9 năm trước cách đây
mục cha
commit
895e996d9a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      dulwich/client.py

+ 1 - 1
dulwich/client.py

@@ -976,7 +976,7 @@ class SSHGitClient(TraditionalGitClient):
         self.alternative_paths = {}
 
     def _get_cmd_path(self, cmd):
-        cmd = self.alternative_paths.get(cmd, 'git-' + cmd)
+        cmd = self.alternative_paths.get(cmd, b'git-' + cmd)
         cmd = shlex.split(cmd)
         cmd = [x.decode('ascii') for x in cmd]
         return cmd