aboutsummaryrefslogtreecommitdiff
path: root/gitosis/test/test_repository.py
diff options
context:
space:
mode:
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')