diff options
author | 2016-09-08 20:13:40 +0530 | |
---|---|---|
committer | 2016-09-08 21:42:08 +0530 | |
commit | b79494923b6f7780a8409472da5ce01897846518 (patch) | |
tree | 927136bfe7bab19ebe538fef63bb8bdfbe09d04a /t | |
parent | minor README change (diff) | |
download | gitolite-gentoo-b79494923b6f7780a8409472da5ce01897846518.tar.gz gitolite-gentoo-b79494923b6f7780a8409472da5ce01897846518.tar.bz2 gitolite-gentoo-b79494923b6f7780a8409472da5ce01897846518.zip |
fix 'access' command behaviour for 'C' and 'D' perms
Thanks to Alexander Groß for catching this. Basically, the access command was
ignoring the presence or absence
Diffstat (limited to 't')
-rwxr-xr-x | t/access.t | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -9,7 +9,7 @@ use Gitolite::Test; # test 'gitolite access' # ---------------------------------------------------------------------- -try "plan 208"; +try "plan 216"; confreset;confadd ' @admins = admin dev1 @@ -162,6 +162,12 @@ confreset;confadd ' repo @all R = gitweb + + repo c0 + RW+ = @all + repo c1 + RWC = u1 + RW+ = @all '; try "ADMIN_PUSH set4; !/FATAL/" or die text(); @@ -184,4 +190,13 @@ try " gitolite access foo u3 R; ok gitolite access foo u4 R; !ok gitolite access foo gitweb R; ok + + gitolite access c0 u1 +; ok + gitolite access c0 u1 C; ok + gitolite access c0 u2 +; ok + gitolite access c0 u2 C; ok + gitolite access c1 u1 +; ok + gitolite access c1 u1 C; ok + gitolite access c1 u2 +; ok + gitolite access c1 u2 C; !ok "; |