5 # this is hardcoded; change it if needed
9 # uhh, seems to be another rule sequence test
10 # ----------------------------------------------------------------------
16 @gfoo = foo/CREATOR/..*
24 try
"ADMIN_PUSH set1; !/FATAL/" or die text
();
28 glt clone u1 file:///foo/u1/bar; ok
29 /Initialized empty Git repository in .*/foo/u1/bar.git//
33 glt push u1 origin master
34 /To file:///foo/u1/bar/
35 /\\[new branch\\] master -> master/
36 echo WRITERS u2 | glt perms u1 foo/u1/bar
37 glt perms u1 foo/u1/bar -l
46 glt clone u2 file:///foo/u1/bar u2bar
47 /Cloning into 'u2bar'.../
58 @gfoo = foo/CREATOR/..*
67 try
"ADMIN_PUSH set1; !/FATAL/" or die text
();
72 glt clone u1 file:///foo/u1/bar; ok
73 /Initialized empty Git repository in .*/foo/u1/bar.git//
77 glt push u1 origin master
78 /To file:///foo/u1/bar/
79 /\\[new branch\\] master -> master/
80 echo WRITERS u2 | glt perms u1 foo/u1/bar
81 glt perms u1 foo/u1/bar -l
91 glt clone u2 file:///foo/u1/bar u2bar
92 /Cloning into 'u2bar'.../
98 /W refs/heads/master foo/u1/bar u2 DENIED by refs/\\.\\*/
100 # auto-create using perms fail
101 echo READERS u5 | glt perms u4 -c foo/u4/baz
102 !/Initialized empty Git repository in .*/foo/u4/baz.git/
103 /FATAL: repo does not exist, or you are not authorised/
105 # auto-create using perms
106 echo READERS u2 | glt perms u1 -c foo/u1/baz
107 /Initialized empty Git repository in .*/foo/u1/baz.git/
109 glt perms u1 foo/u1/baz -l