diff options
Diffstat (limited to 'git/repo/base.py')
-rw-r--r-- | git/repo/base.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/git/repo/base.py b/git/repo/base.py index 61352a9a..b7a9e29d 100644 --- a/git/repo/base.py +++ b/git/repo/base.py @@ -75,7 +75,6 @@ def _expand_path(p): class Repo(object): - """Represents a git repository and allows you to query references, gather commit information, generate diffs, create and clone repositories query the log. @@ -758,7 +757,7 @@ class Repo(object): # git command automatically chdir into the directory git = Git(path) git.init(**kwargs) - return Repo(path) + return cls(path) @classmethod def _clone(cls, git, url, path, odb_default_type, progress, **kwargs): |