(some minor changes)
- whitespace change to t/reset - remove dbg line accidentally left in in Load.pm - add a bit more explanation to 'writable'
This commit is contained in:
parent
9bbc5703e3
commit
7c6728af89
|
@ -70,7 +70,7 @@ sub conf {
|
||||||
chdir($GL_ADMINDIR);
|
chdir($GL_ADMINDIR);
|
||||||
|
|
||||||
my $conf = `find . -name "*.conf" | xargs cat`;
|
my $conf = `find . -name "*.conf" | xargs cat`;
|
||||||
msg( "SEVERE", "fallthru in NAME rules; see docs" ) if $conf =~ m(NAME/);
|
msg( "SEVERE", "NAME rules; see docs" ) if $conf =~ m(NAME/);
|
||||||
msg( "SEVERE", "subconf command in admin repo; see docs" ) if $conf =~ m(NAME/conf/fragments);
|
msg( "SEVERE", "subconf command in admin repo; see docs" ) if $conf =~ m(NAME/conf/fragments);
|
||||||
msg( "SEVERE", "mirroring used; see docs" ) if $conf =~ m(config +gitolite\.mirror\.);
|
msg( "SEVERE", "mirroring used; see docs" ) if $conf =~ m(config +gitolite\.mirror\.);
|
||||||
}
|
}
|
||||||
|
|
|
@ -232,7 +232,6 @@ sub load_1 {
|
||||||
|
|
||||||
my @repos = memberships( 'repo', $repo );
|
my @repos = memberships( 'repo', $repo );
|
||||||
my @users = memberships( 'user', $user, $repo );
|
my @users = memberships( 'user', $user, $repo );
|
||||||
dbg(\@users);
|
|
||||||
trace( 3, "memberships: " . scalar(@repos) . " repos and " . scalar(@users) . " users found" );
|
trace( 3, "memberships: " . scalar(@repos) . " repos and " . scalar(@users) . " users found" );
|
||||||
|
|
||||||
for my $r (@repos) {
|
for my $r (@repos) {
|
||||||
|
|
|
@ -8,6 +8,9 @@ use Gitolite::Easy;
|
||||||
=for usage
|
=for usage
|
||||||
Usage: gitolite writable <reponame>|@all on|off
|
Usage: gitolite writable <reponame>|@all on|off
|
||||||
|
|
||||||
|
Disable/re-enable pushes to all repos or named repo. Useful to run
|
||||||
|
non-git-aware backups and so on.
|
||||||
|
|
||||||
'on' enables, 'off' disables, writes (pushes) to the named repo or all repos.
|
'on' enables, 'off' disables, writes (pushes) to the named repo or all repos.
|
||||||
|
|
||||||
With 'off', any subsequent text is taken to be the message to be shown to
|
With 'off', any subsequent text is taken to be the message to be shown to
|
||||||
|
|
10
t/reset
10
t/reset
|
@ -14,11 +14,11 @@ use Cwd;
|
||||||
my $workdir = getcwd();
|
my $workdir = getcwd();
|
||||||
|
|
||||||
confreset;confadd '
|
confreset;confadd '
|
||||||
repo foo/..*
|
repo foo/..*
|
||||||
C = u1 u2 u3
|
C = u1 u2 u3
|
||||||
RW+ = CREATOR
|
RW+ = CREATOR
|
||||||
RW = WRITERS
|
RW = WRITERS
|
||||||
R = READERS
|
R = READERS
|
||||||
';
|
';
|
||||||
|
|
||||||
try "ADMIN_PUSH set1; !/FATAL/" or die text();
|
try "ADMIN_PUSH set1; !/FATAL/" or die text();
|
||||||
|
|
Loading…
Reference in a new issue