瀏覽代碼

Fix porcelain.clone() on Python3.

Jelmer Vernooij 8 年之前
父節點
當前提交
eadd3521b0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dulwich/porcelain.py

+ 1 - 1
dulwich/porcelain.py

@@ -266,7 +266,7 @@ def clone(source, target=None, bare=False, checkout=None,
     else:
         r = Repo.init(target)
     try:
-        remote_refs = client.fetch(host_path, r,
+        remote_refs = client.fetch(encode_path(host_path), r,
             determine_wants=r.object_store.determine_wants_all,
             progress=errstream.write)
         r.refs.import_refs(