summaryrefslogtreecommitdiff
path: root/lib/git/repo.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/git/repo.py')
-rw-r--r--lib/git/repo.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/git/repo.py b/lib/git/repo.py
index 25cc412e..0c8ac9e9 100644
--- a/lib/git/repo.py
+++ b/lib/git/repo.py
@@ -693,8 +693,9 @@ class Repo(object):
if mkdir and path and not os.path.exists(path):
os.makedirs(path, 0755)
+ # git command automatically chdir into the directory
git = Git(path)
- output = git.init(path, **kwargs)
+ output = git.init(**kwargs)
return Repo(path)
def clone(self, path, **kwargs):