diff options
Diffstat (limited to 'lib/git')
-rw-r--r-- | lib/git/repo.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/git/repo.py b/lib/git/repo.py index f531617d..5853356e 100644 --- a/lib/git/repo.py +++ b/lib/git/repo.py @@ -272,8 +272,8 @@ class Repo(object): ``GitPython.Repo`` (the newly created repo) """ - if mkdir and not os.path.exists(gitpath): - os.makedirs(gitpath, 0755) + if mkdir and not os.path.exists(path): + os.makedirs(path, 0755) git = Git(path) output = git.init(**kwargs) |