Explorar o código

Fix test_client.TestGetTransportAndPath.test_local_abs_windows_path

Gary van der Merwe %!s(int64=10) %!d(string=hai) anos
pai
achega
f675e9fe74
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      dulwich/client.py

+ 1 - 1
dulwich/client.py

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