aboutsummaryrefslogtreecommitdiff
path: root/gitosis/test/test_repository.py
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2007-12-28 08:19:03 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2007-12-28 08:19:03 +0000
commit33cd99f204403f6f486507d4494c84880e85593c (patch)
treef36834196b1a7b5987b48d3b7bd9110d9b10b80a /gitosis/test/test_repository.py
parentRemove old extract_user function, replaced by username property of SSHPublicK... (diff)
downloadgitosis-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/test_repository.py')
-rw-r--r--gitosis/test/test_repository.py7
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')