aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorSitaram Chamarty <sitaram@atc.tcs.com>2016-09-08 20:13:40 +0530
committerSitaram Chamarty <sitaram@atc.tcs.com>2016-09-08 21:42:08 +0530
commitb79494923b6f7780a8409472da5ce01897846518 (patch)
tree927136bfe7bab19ebe538fef63bb8bdfbe09d04a /t
parentminor README change (diff)
downloadgitolite-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-xt/access.t17
1 files changed, 16 insertions, 1 deletions
diff --git a/t/access.t b/t/access.t
index 34e015f..c6c7b22 100755
--- a/t/access.t
+++ b/t/access.t
@@ -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
";