Skip to content

Commit d1f16d5

Browse files
committed
fix(create_repo): Pass *args
1 parent 0faf18f commit d1f16d5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libvcs/shortcuts.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
def create_repo(
20-
url, vcs, progress_callback=None, **kwargs
20+
url, vcs, progress_callback=None, *args, **kwargs
2121
) -> Union[GitRepo, MercurialRepo, SubversionRepo]:
2222
r"""Return a object representation of a VCS repository.
2323
@@ -44,11 +44,11 @@ def create_repo(
4444
Already up-to-date.
4545
"""
4646
if vcs == "git":
47-
return GitRepo(url, progress_callback=progress_callback, **kwargs)
47+
return GitRepo(url, progress_callback=progress_callback, *args, **kwargs)
4848
elif vcs == "hg":
49-
return MercurialRepo(url, progress_callback=progress_callback, **kwargs)
49+
return MercurialRepo(url, progress_callback=progress_callback, *args, **kwargs)
5050
elif vcs == "svn":
51-
return SubversionRepo(url, progress_callback=progress_callback, **kwargs)
51+
return SubversionRepo(url, progress_callback=progress_callback, *args, **kwargs)
5252
else:
5353
raise InvalidVCS("VCS %s is not a valid VCS" % vcs)
5454

0 commit comments

Comments
 (0)