2012-03-10 14:26:29 +01:00
|
|
|
#!/usr/bin/perl
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
|
2012-03-11 17:03:15 +01:00
|
|
|
BEGIN {
|
|
|
|
unlink "$ENV{HOME}/.ssh/authorized_keys";
|
|
|
|
}
|
|
|
|
|
2012-03-10 14:26:29 +01:00
|
|
|
# this is hardcoded; change it if needed
|
|
|
|
use lib "src";
|
|
|
|
use Gitolite::Test;
|
2012-03-21 14:51:12 +01:00
|
|
|
|
|
|
|
use Cwd;
|
|
|
|
my $workdir = getcwd();
|
|
|
|
|
|
|
|
confreset;confadd '
|
2012-03-30 11:44:25 +02:00
|
|
|
repo foo/..*
|
|
|
|
C = u1 u2 u3
|
|
|
|
RW+ = CREATOR
|
|
|
|
RW = WRITERS
|
|
|
|
R = READERS
|
2012-03-21 14:51:12 +01:00
|
|
|
';
|
|
|
|
|
|
|
|
try "ADMIN_PUSH set1; !/FATAL/" or die text();
|
|
|
|
|
|
|
|
try "
|
|
|
|
mkdir -p keydir
|
|
|
|
cp \$HOME/.ssh/u*.pub keydir
|
|
|
|
cp \$HOME/.ssh/admin.pub keydir
|
|
|
|
git add keydir
|
|
|
|
git commit -m 6k
|
|
|
|
glt push admin origin
|
|
|
|
";
|