Преглед на файлове

Add note about encoding.

Jelmer Vernooij преди 8 години
родител
ревизия
57fbe01044
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      dulwich/client.py

+ 3 - 0
dulwich/client.py

@@ -1100,6 +1100,9 @@ class HttpGitClient(GitClient):
 
     def _get_url(self, path):
         if not isinstance(path, str):
+            # TODO(jelmer): this is unrelated to the local filesystem;
+            # This is not necessarily the right encoding to decode the path
+            # with.
             path = path.decode(sys.getfilesystemencoding())
         return urlparse.urljoin(self._base_url, path).rstrip("/") + "/"