From 4bf8e89e6784e121ddc32990d586e2276ec84596 Mon Sep 17 00:00:00 2001 From: Michael Trier Date: Mon, 18 Aug 2008 13:36:32 -0400 Subject: fixed it so init actually creates a bare repo. Thank you Daniel Watkins. --- lib/git/repo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/git/repo.py b/lib/git/repo.py index 1ceb7449..682b7652 100644 --- a/lib/git/repo.py +++ b/lib/git/repo.py @@ -297,7 +297,7 @@ class Repo(object): os.makedirs(path, 0755) git = Git(path) - output = git.init(**kwargs) + output = git.init('--bare', **kwargs) return Repo(path) create = init_bare -- cgit v1.2.3 From 127e511ea2e22f3bd9a0279e747e9cfa9509986d Mon Sep 17 00:00:00 2001 From: Michael Trier Date: Mon, 18 Aug 2008 13:39:27 -0400 Subject: Fixed bare related tests. --- test/git/test_repo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/git/test_repo.py b/test/git/test_repo.py index e720856b..7550e1d6 100644 --- a/test/git/test_repo.py +++ b/test/git/test_repo.py @@ -120,7 +120,7 @@ class TestRepo(object): Repo.init_bare("repos/foo/bar.git") assert_true(git.called) - assert_equal(git.call_args, (('init',), {})) + assert_equal(git.call_args, (('init', '--bare'), {})) assert_true(repo.called) assert_equal(repo.call_args, (('repos/foo/bar.git',), {})) @@ -132,7 +132,7 @@ class TestRepo(object): Repo.init_bare("repos/foo/bar.git", **{'template': "/baz/sweet"}) assert_true(git.called) - assert_equal(git.call_args, (('init',), {'template': '/baz/sweet'})) + assert_equal(git.call_args, (('init', '--bare'), {'template': '/baz/sweet'})) assert_true(repo.called) assert_equal(repo.call_args, (('repos/foo/bar.git',), {})) -- cgit v1.2.3