Skip to content

Commit 8df638c

Browse files
committed
Merge branch 'master' of git@gitorious.org:git-python/mainline
2 parents a6604a0 + 127e511 commit 8df638c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/git/repo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def init_bare(self, path, mkdir=True, **kwargs):
297297
os.makedirs(path, 0755)
298298

299299
git = Git(path)
300-
output = git.init(**kwargs)
300+
output = git.init('--bare', **kwargs)
301301
return Repo(path)
302302
create = init_bare
303303

test/git/test_repo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def test_init_bare(self, repo, git):
120120
Repo.init_bare("repos/foo/bar.git")
121121

122122
assert_true(git.called)
123-
assert_equal(git.call_args, (('init',), {}))
123+
assert_equal(git.call_args, (('init', '--bare'), {}))
124124
assert_true(repo.called)
125125
assert_equal(repo.call_args, (('repos/foo/bar.git',), {}))
126126

@@ -132,7 +132,7 @@ def test_init_bare_with_options(self, repo, git):
132132
Repo.init_bare("repos/foo/bar.git", **{'template': "/baz/sweet"})
133133

134134
assert_true(git.called)
135-
assert_equal(git.call_args, (('init',), {'template': '/baz/sweet'}))
135+
assert_equal(git.call_args, (('init', '--bare'), {'template': '/baz/sweet'}))
136136
assert_true(repo.called)
137137
assert_equal(repo.call_args, (('repos/foo/bar.git',), {}))
138138

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy