From 0132515356f5ed1547860222b5870b2965d87720 Mon Sep 17 00:00:00 2001 From: Tommi Virtanen Date: Sat, 1 Sep 2007 16:34:42 -0700 Subject: [PATCH] Make sure re-initing a repository does not change access modes. --- gitosis/test/test_repository.py | 6 ++++-- 1 file 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():