| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 5b3669e commit fe5f8d5
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1042,7 +1042,7 @@ def init(cls, path: Union[PathLike, None] = None, mkdir: bool = True, odbt: Type | |||
| 1042 | 1042 | os.makedirs(path, 0o755) | |
| 1043 | 1043 | ||
| 1044 | 1044 | # git command automatically chdir into the directory | |
| 1045 | - git = Git(path) | ||
| 1045 | + git = cls.GitCommandWrapperType(path) | ||
| 1046 | 1046 | git.init(**kwargs) | |
| 1047 | 1047 | return cls(path, odbt=odbt) | |
| 1048 | 1048 | ||
@@ -1142,7 +1142,7 @@ def clone_from(cls, url: PathLike, to_path: PathLike, progress: Optional[Callabl | |||
| 1142 | 1142 | :param multi_options: See ``clone`` method | |
| 1143 | 1143 | :param kwargs: see the ``clone`` method | |
| 1144 | 1144 | :return: Repo instance pointing to the cloned directory""" | |
| 1145 | - git = Git(os.getcwd()) | ||
| 1145 | + git = cls.GitCommandWrapperType(os.getcwd()) | ||
| 1146 | 1146 | if env is not None: | |
| 1147 | 1147 | git.update_environment(**env) | |
| 1148 | 1148 | return cls._clone(git, url, to_path, GitCmdObjectDB, progress, multi_options, **kwargs) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments