git.samba.org
/
jelmer
/
gitpython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f347c6d
)
removed to much :รพ
author
Florian Apolloner
<florian@apolloner.eu>
Wed, 11 Jun 2008 17:47:49 +0000
(19:47 +0200)
committer
Florian Apolloner
<florian@apolloner.eu>
Wed, 11 Jun 2008 17:47:49 +0000
(19:47 +0200)
lib/git/repo.py
patch
|
blob
|
history
diff --git
a/lib/git/repo.py
b/lib/git/repo.py
index 951c18d9aa9c0a750244d73bb849c997939d3c7c..f531617d495425dda54c611263ace4771007b252 100644
(file)
--- 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)