3 # not part of the official test suite (yet); just some q&d testing
5 # to be run from ~/gitolite as ./$0
11 print2
() { echo -n "$@" >&3; }
12 say2
() { echo "$@" >&3; }
13 die
() { echo FATAL
: "$@" >&3; exit 1; }
16 export tmp
=$
(mktemp
-d)
23 echo "push @{ \$RC{ENABLE} }, 'refex-expr';" >> ~
/.gitolite.rc
24 cat <<EOF >> ~/.gitolite/conf/gitolite.conf
29 RW+ master = u3 u4 # line 2
31 RW+ VREF/NAME/Makefile = u3 u4 # line 4
32 - master and VREF/NAME/Makefile = u3 u4 # line 5
38 # ----------------------------------------------------------------------
51 say2 everyone master no Makefile
56 git push u1
:r1 master
:m1
57 say2 u1 Makefile master
60 git push u3
:r1 master
&& die u3 r1 master should have failed
61 git push u3
:r1 master
:m2
62 say2 u3 Makefile master fail m2 pass