瀏覽代碼

client: In get_transport_and_path, pass kwargs on to HttpGitClient.

Jelmer Vernooij 12 年之前
父節點
當前提交
4eb2e5049d
共有 2 個文件被更改,包括 4 次插入1 次删除
  1. 3 0
      NEWS
  2. 1 1
      dulwich/client.py

+ 3 - 0
NEWS

@@ -35,6 +35,9 @@
 
   * Support ``MemoryRepo.get_config``. (Jelmer Vernooij)
 
+  * In ``get_transport_and_path``, pass extra keyword arguments on to
+    HttpGitClient. (Jelmer Vernooij)
+
 0.8.5	2012-03-29
 
  BUG FIXES

+ 1 - 1
dulwich/client.py

@@ -779,7 +779,7 @@ def get_transport_and_path(uri, **kwargs):
         return SSHGitClient(parsed.hostname, port=parsed.port,
                             username=parsed.username, **kwargs), parsed.path
     elif parsed.scheme in ('http', 'https'):
-        return HttpGitClient(urlparse.urlunparse(parsed)), parsed.path
+        return HttpGitClient(urlparse.urlunparse(parsed), **kwargs), parsed.path
 
     if parsed.scheme and not parsed.netloc:
         # SSH with no user@, zero or one leading slash.