5 # this is hardcoded; change it if needed
9 # assigning roles to groups instead of users
10 # ----------------------------------------------------------------------
14 try
"DEF POK = !/DENIED/; !/failed to push/";
20 @gbar = bar/CREATOR/..*
28 try
"ADMIN_PUSH set1; !/FATAL/" or die text
();
32 # u1 auto-creates a repo
33 glt ls-remote u1 file:///bar/u1/try1
34 /Initialized empty Git repository in .*/bar/u1/try1.git//
35 # default permissions for u2 and u4
37 /R W *\tbar/u1/try1\tu1/
39 !/R W *\tbar/u1/try1\tu1/
41 !/R W *\tbar/u1/try1\tu1/
44 echo WRITERS \@leads | glt perms u1 -c bar/u1/try1; ok
46 /R W *\tbar/u1/try1\tu1/
48 /R W *\tbar/u1/try1\tu1/
50 !/R W *\tbar/u1/try1\tu1/
53 echo READERS \@devs | glt perms u1 -c bar/u1/try1; ok
54 glt perms u1 bar/u1/try1 -l
59 /R W *\tbar/u1/try1\tu1/
62 !/R W *\tbar/u1/try1\tu1/
63 /R *\tbar/u1/try1\tu1/
66 !/R W *\tbar/u1/try1\tu1/
67 /R *\tbar/u1/try1\tu1/
70 /usr/bin/printf 'READERS \@devs\\nWRITERS \@leads\\n' | glt perms u1 -c bar/u1/try1; ok
71 glt perms u1 bar/u1/try1 -l
75 /R W *\tbar/u1/try1\tu1/
77 /R W *\tbar/u1/try1\tu1/
79 !/R W *\tbar/u1/try1\tu1/
80 /R *\tbar/u1/try1\tu1/