@@ -140,7 +140,7 @@ class GitRepo(BaseRepo):
140140 schemes = ("git" , "git+http" , "git+https" , "git+ssh" , "git+git" , "git+file" )
141141
142142 def __init__ (
143- self , url : str , repo_dir : str , remotes : GitRemotesArgs = None , * args , ** kwargs
143+ self , url : str , dir : str , remotes : GitRemotesArgs = None , * args , ** kwargs
144144 ):
145145 """A git repository.
146146
@@ -164,7 +164,7 @@ def __init__(
164164
165165 repo = GitRepo(
166166 url="https://github.com/vcs-python/libvcs",
167- repo_dir =checkout,
167+ dir =checkout,
168168 remotes={
169169 'gitlab': 'https://gitlab.com/vcs-python/libvcs'
170170 }
@@ -179,7 +179,7 @@ def __init__(
179179
180180 repo = GitRepo(
181181 url="https://github.com/vcs-python/libvcs",
182- repo_dir =checkout,
182+ dir =checkout,
183183 remotes={
184184 'gitlab': {
185185 'fetch_url': 'https://gitlab.com/vcs-python/libvcs',
@@ -221,7 +221,7 @@ def __init__(
221221 fetch_url = url ,
222222 push_url = url ,
223223 )
224- BaseRepo .__init__ (self , url , repo_dir , * args , ** kwargs )
224+ BaseRepo .__init__ (self , url , dir , * args , ** kwargs )
225225 self .url = self .chomp_protocol (
226226 (
227227 self ._remotes .get ("origin" )
@@ -592,7 +592,7 @@ def status(self) -> dict:
592592 --------
593593 >>> git_repo = GitRepo(
594594 ... url=f'file://{create_git_remote_repo()}',
595- ... repo_dir =tmp_path
595+ ... dir =tmp_path
596596 ... )
597597 >>> git_repo.obtain()
598598 >>> git_repo.status()
0 commit comments