summaryrefslogtreecommitdiff
path: root/git/repo/base.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2015-01-22 16:45:12 +0100
committerSebastian Thiel <byronimo@gmail.com>2015-01-22 16:45:12 +0100
commit0ddbe4bc24e634e6496abd3bc6ce3c4377cdf2fb (patch)
tree3fea2f99d9108cddc99d87ec834ad176b486bd5b /git/repo/base.py
parent5ad07f7b23e762e3eb99ce45020375d2bd743fc5 (diff)
downloadgitpython-0ddbe4bc24e634e6496abd3bc6ce3c4377cdf2fb.tar.gz
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
Diffstat (limited to 'git/repo/base.py')
-rw-r--r--git/repo/base.py3
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):