5 # this is hardcoded; change it if needed
10 # ----------------------------------------------------------------------
31 try
"ADMIN_PUSH set1; !/FATAL/" or die text
();
35 gitolite access t1 u1; ok; /refs/heads/p/u1//; !/DENIED/
36 gitolite access t1 u5; !ok; /\\+ any t1 u5 DENIED by fallthru/
37 gitolite access \@g1 u5 W; ok; /refs/heads/a/u5//; !/DENIED/
39 gitolite access t1 u1 W refs/heads/a/user1/foo; !ok; /W refs/heads/a/user1/foo t1 u1 DENIED by fallthru/
40 gitolite access \@g1 u1 + refs/heads/a/user1/foo; !ok; /\\+ refs/heads/a/user1/foo \@g1 u1 DENIED by fallthru/
41 gitolite access t1 u1 W refs/heads/p/user1/foo; !ok; /W refs/heads/p/user1/foo t1 u1 DENIED by fallthru/
42 gitolite access \@g1 u1 + refs/heads/p/user1/foo; !ok; /\\+ refs/heads/p/user1/foo \@g1 u1 DENIED by fallthru/
44 gitolite access \@g1 u1 W refs/heads/a/u1/foo; ok; /refs/heads/a/u1//; !/DENIED/
45 gitolite access t1 u1 + refs/heads/a/u1/foo; !ok; /\\+ refs/heads/a/u1/foo t1 u1 DENIED by fallthru/
46 gitolite access \@g1 u1 W refs/heads/p/u1/foo; ok; /refs/heads/p/u1//; !/DENIED/
47 gitolite access t1 u1 + refs/heads/p/u1/foo; ok; /refs/heads/p/u1//; !/DENIED/
49 gitolite access \@g1 u1 W refs/heads/p/u2/foo; !ok; /W refs/heads/p/u2/foo \@g1 u1 DENIED by fallthru/
50 gitolite access t1 u1 + refs/heads/p/u2/foo; !ok; /\\+ refs/heads/p/u2/foo t1 u1 DENIED by fallthru/
54 @staff = u1 u2 u3 u4 u5 u6
62 try
"ADMIN_PUSH set1; !/FATAL/" or die text
();
65 DEF OK = gitolite access foo %1 %2 refs/heads/%3; ok
66 DEF NOK = gitolite access foo %1 %2 refs/heads/%3; !ok
78 # u3 cant push u1/u4 personal branches
82 # u4 can push u4 personal branch
87 # u1 and u2 can rewind
93 # u3 cant rewind u1/u4 personal branches
96 # u4 can rewind u4 personal branch