summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/git/repo.py2
-rw-r--r--test/git/test_repo.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/git/repo.py b/lib/git/repo.py
index edaeee83..8f5d4dca 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
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',), {}))