From 33cd99f204403f6f486507d4494c84880e85593c Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Fri, 28 Dec 2007 08:19:03 +0000 Subject: Add support for custom perms during repo creation. --- gitosis/test/test_repository.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gitosis/test/test_repository.py') diff --git a/gitosis/test/test_repository.py b/gitosis/test/test_repository.py index 4890c47..50e2661 100644 --- a/gitosis/test/test_repository.py +++ b/gitosis/test/test_repository.py @@ -36,6 +36,13 @@ def test_init_exist_dir(): check_mode(path, 0710, is_dir=True) check_bare(path) +def test_init_custom_perm(): + tmp = maketemp() + path = os.path.join(tmp, 'repo.git') + repository.init(path, mode=0711) + check_mode(path, 0711, is_dir=True) + check_bare(path) + def test_init_exist_git(): tmp = maketemp() path = os.path.join(tmp, 'repo.git') -- cgit v1.2.3