summaryrefslogtreecommitdiff
path: root/lib/git/repo.py
diff options
context:
space:
mode:
authorFlorian Apolloner <florian@apolloner.eu>2008-06-11 19:47:49 +0200
committerFlorian Apolloner <florian@apolloner.eu>2008-06-11 19:47:49 +0200
commit2effd7a10798a1e8e53bb546a67b2ccdea882c50 (patch)
tree1b1f223392508b9f7194515708000a942bb727bc /lib/git/repo.py
parentf347c6da5e83b137c337f9ccb190090c27cfc953 (diff)
downloadgitpython-2effd7a10798a1e8e53bb546a67b2ccdea882c50.tar.gz
removed to much :รพ
Diffstat (limited to 'lib/git/repo.py')
-rw-r--r--lib/git/repo.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/git/repo.py b/lib/git/repo.py
index 951c18d9..f531617d 100644
--- a/lib/git/repo.py
+++ b/lib/git/repo.py
@@ -271,6 +271,10 @@ class Repo(object):
Returns
``GitPython.Repo`` (the newly created repo)
"""
+
+ if mkdir and not os.path.exists(gitpath):
+ os.makedirs(gitpath, 0755)
+
git = Git(path)
output = git.init(**kwargs)
return Repo(path)