From 0ddbe4bc24e634e6496abd3bc6ce3c4377cdf2fb Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Thu, 22 Jan 2015 16:45:12 +0100 Subject: Added test for `sshkey` context manager. It verifies that the script is actually called. Interestingly, the shell script version works within an msysgit environment on windows. Fixes #234 --- git/repo/base.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'git/repo/base.py') 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): -- cgit v1.2.1