From 93ad8da5a8c6ddcbe67abae2cc4a7aad8084e736 Mon Sep 17 00:00:00 2001 From: Florian Apolloner Date: Wed, 11 Jun 2008 16:49:25 +0200 Subject: fixed init_bare --- lib/git/repo.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'lib/git/repo.py') 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 -- cgit v1.2.1