aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gitosis/test/test_repository.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/gitosis/test/test_repository.py b/gitosis/test/test_repository.py
index f5b312a..2ac0d79 100644
--- a/gitosis/test/test_repository.py
+++ b/gitosis/test/test_repository.py
@@ -21,9 +21,11 @@ def test_init_simple():
def test_init_exist_dir():
tmp = maketemp()
path = os.path.join(tmp, 'repo.git')
- mkdir(path)
+ mkdir(path, 0710)
+ check_mode(path, 0710, is_dir=True)
repository.init(path)
- check_mode(path, 0750, is_dir=True)
+ # my weird access mode is preserved
+ check_mode(path, 0710, is_dir=True)
check_bare(path)
def test_init_exist_git():