diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2007-12-28 08:19:03 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2007-12-28 08:19:03 +0000 |
commit | 33cd99f204403f6f486507d4494c84880e85593c (patch) | |
tree | f36834196b1a7b5987b48d3b7bd9110d9b10b80a /gitosis/test | |
parent | Remove old extract_user function, replaced by username property of SSHPublicK... (diff) | |
download | gitosis-dakkar-33cd99f204403f6f486507d4494c84880e85593c.tar.gz gitosis-dakkar-33cd99f204403f6f486507d4494c84880e85593c.tar.bz2 gitosis-dakkar-33cd99f204403f6f486507d4494c84880e85593c.zip |
Add support for custom perms during repo creation.
Diffstat (limited to 'gitosis/test')
-rw-r--r-- | gitosis/test/test_repository.py | 7 |
1 files changed, 7 insertions, 0 deletions
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') |