瀏覽代碼

Fix test_client.TestGetTransportAndPath.test_local_abs_windows_path

Gary van der Merwe 10 年之前
父節點
當前提交
f675e9fe74
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dulwich/client.py

+ 1 - 1
dulwich/client.py

@@ -1135,7 +1135,7 @@ def get_transport_and_path(location, **kwargs):
         pass
 
     if (sys.platform == 'win32' and
-            location[0].isalpha() and location[1:2] == ':\\'):
+            location[0].isalpha() and location[1:3] == ':\\'):
         # Windows local path
         return default_local_git_client_cls(**kwargs), location