diff options
author | Florian Apolloner <florian@apolloner.eu> | 2008-06-11 19:47:49 +0200 |
---|---|---|
committer | Florian Apolloner <florian@apolloner.eu> | 2008-06-11 19:47:49 +0200 |
commit | 2effd7a10798a1e8e53bb546a67b2ccdea882c50 (patch) | |
tree | 1b1f223392508b9f7194515708000a942bb727bc /lib/git/repo.py | |
parent | f347c6da5e83b137c337f9ccb190090c27cfc953 (diff) | |
download | gitpython-2effd7a10798a1e8e53bb546a67b2ccdea882c50.tar.gz |
removed to much :รพ
Diffstat (limited to 'lib/git/repo.py')
-rw-r--r-- | lib/git/repo.py | 4 |
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) |