From 2effd7a10798a1e8e53bb546a67b2ccdea882c50 Mon Sep 17 00:00:00 2001 From: Florian Apolloner Date: Wed, 11 Jun 2008 19:47:49 +0200 Subject: =?UTF-8?q?removed=20to=20much=20:=C3=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/git/repo.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/git/repo.py') 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) -- cgit v1.2.1