diff options
author | Florian Apolloner <florian@apolloner.eu> | 2008-06-11 16:49:25 +0200 |
---|---|---|
committer | Florian Apolloner <florian@apolloner.eu> | 2008-06-11 16:49:25 +0200 |
commit | 93ad8da5a8c6ddcbe67abae2cc4a7aad8084e736 (patch) | |
tree | 29006db382b51eca75d694d77735ce83c4c7773c /lib/git/repo.py | |
parent | ef9395f5ffe75f4e43d80cd1fa7b34c8a4db66fe (diff) | |
download | gitpython-93ad8da5a8c6ddcbe67abae2cc4a7aad8084e736.tar.gz |
fixed init_bare
Diffstat (limited to 'lib/git/repo.py')
-rw-r--r-- | lib/git/repo.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/git/repo.py b/lib/git/repo.py index 015ce4a8..951c18d9 100644 --- a/lib/git/repo.py +++ b/lib/git/repo.py @@ -271,16 +271,7 @@ class Repo(object): Returns ``GitPython.Repo`` (the newly created repo) """ - split = os.path.split(path) - if split[-1] == '.git' or os.path.split(split[0])[-1] == '.git': - gitpath = path - else: - gitpath = os.path.join(path, '.git') - - if mkdir and not os.path.exists(gitpath): - os.makedirs(gitpath, 0755) - - git = Git(gitpath) + git = Git(path) output = git.init(**kwargs) return Repo(path) create = init_bare |