removed to much :รพ
authorFlorian Apolloner <florian@apolloner.eu>
Wed, 11 Jun 2008 17:47:49 +0000 (19:47 +0200)
committerFlorian Apolloner <florian@apolloner.eu>
Wed, 11 Jun 2008 17:47:49 +0000 (19:47 +0200)
lib/git/repo.py

index 951c18d9aa9c0a750244d73bb849c997939d3c7c..f531617d495425dda54c611263ace4771007b252 100644 (file)
@@ -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)