diff options
Diffstat (limited to 'git/repo/base.py')
-rw-r--r-- | git/repo/base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git/repo/base.py b/git/repo/base.py index c0229a84..e308fd8a 100644 --- a/git/repo/base.py +++ b/git/repo/base.py @@ -1042,7 +1042,7 @@ class Repo(object): os.makedirs(path, 0o755) # git command automatically chdir into the directory - git = Git(path) + git = cls.GitCommandWrapperType(path) git.init(**kwargs) return cls(path, odbt=odbt) @@ -1142,7 +1142,7 @@ class Repo(object): :param multi_options: See ``clone`` method :param kwargs: see the ``clone`` method :return: Repo instance pointing to the cloned directory""" - git = Git(os.getcwd()) + git = cls.GitCommandWrapperType(os.getcwd()) if env is not None: git.update_environment(**env) return cls._clone(git, url, to_path, GitCmdObjectDB, progress, multi_options, **kwargs) |