summaryrefslogtreecommitdiff
path: root/lib/git/repo.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2010-02-13 19:48:40 +0100
committerSebastian Thiel <byronimo@gmail.com>2010-02-13 19:48:40 +0100
commit15ee0ac0d56a5fb5ba13fae4288621ddd2185f17 (patch)
treeacdf245dfc10162680e16885f182f6b4a3c81b7e /lib/git/repo.py
parent400d728c99ddeae73c608e244bd301248b5467fc (diff)
downloadgitpython-15ee0ac0d56a5fb5ba13fae4288621ddd2185f17.tar.gz
IndexFile: unmerged_blobs lists are now sorted
Repo.init: fixed incorrect use of the path which was to optionally specify where to initialize the repository. Update test as well
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):