@@ -36,7 +36,7 @@ def __init__(self, url: str, vcs: str, *args: object):
3636def create_project (
3737 * ,
3838 url : str ,
39- dir : StrPath ,
39+ path : StrPath ,
4040 vcs : t .Literal ["git" ],
4141 progress_callback : t .Optional [ProgressCallbackProtocol ] = None ,
4242 ** kwargs : dict [t .Any , t .Any ],
@@ -48,7 +48,7 @@ def create_project(
4848def create_project (
4949 * ,
5050 url : str ,
51- dir : StrPath ,
51+ path : StrPath ,
5252 vcs : t .Literal ["svn" ],
5353 progress_callback : t .Optional [ProgressCallbackProtocol ] = None ,
5454 ** kwargs : dict [t .Any , t .Any ],
@@ -60,7 +60,7 @@ def create_project(
6060def create_project (
6161 * ,
6262 url : str ,
63- dir : StrPath ,
63+ path : StrPath ,
6464 vcs : t .Literal ["hg" ],
6565 progress_callback : t .Optional [ProgressCallbackProtocol ] = ...,
6666 ** kwargs : dict [t .Any , t .Any ],
@@ -71,7 +71,7 @@ def create_project(
7171def create_project (
7272 * ,
7373 url : str ,
74- dir : StrPath ,
74+ path : StrPath ,
7575 vcs : t .Optional [VCSLiteral ] = None ,
7676 progress_callback : t .Optional [ProgressCallbackProtocol ] = None ,
7777 ** kwargs : dict [t .Any , t .Any ],
@@ -84,7 +84,7 @@ def create_project(
8484 >>> r = create_project(
8585 ... url=f'file://{create_git_remote_repo()}',
8686 ... vcs='git',
87- ... dir =tmp_path
87+ ... path =tmp_path
8888 ... )
8989
9090 >>> isinstance(r, GitSync)
@@ -95,7 +95,7 @@ def create_project(
9595 >>> r = create_project(
9696 ... # Note the git+ before the URL
9797 ... url=f'git+file://{create_git_remote_repo()}',
98- ... dir =tmp_path
98+ ... path =tmp_path
9999 ... )
100100
101101 >>> isinstance(r, GitSync)
@@ -120,10 +120,14 @@ def is_vcs(val: t.Any) -> "TypeGuard[VCSLiteral]":
120120 raise VCSNotSupported (url = url , vcs = vcs_matches [0 ].vcs )
121121
122122 if vcs == "git" :
123- return GitSync (url = url , dir = dir , progress_callback = progress_callback , ** kwargs )
123+ return GitSync (
124+ url = url , path = path , progress_callback = progress_callback , ** kwargs
125+ )
124126 elif vcs == "hg" :
125- return HgSync (url = url , dir = dir , progress_callback = progress_callback , ** kwargs )
127+ return HgSync (url = url , path = path , progress_callback = progress_callback , ** kwargs )
126128 elif vcs == "svn" :
127- return SvnSync (url = url , dir = dir , progress_callback = progress_callback , ** kwargs )
129+ return SvnSync (
130+ url = url , path = path , progress_callback = progress_callback , ** kwargs
131+ )
128132 else :
129133 raise InvalidVCS ("VCS %s is not a valid VCS" % vcs )
0 commit comments