From 7c6728af8979e67f520681f557827c7f81d0a96e Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Fri, 30 Mar 2012 15:14:25 +0530 Subject: [PATCH] (some minor changes) - whitespace change to t/reset - remove dbg line accidentally left in in Load.pm - add a bit more explanation to 'writable' --- check-g2-compat | 2 +- src/Gitolite/Conf/Load.pm | 1 - src/commands/writable | 3 +++ t/reset | 10 +++++----- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/check-g2-compat b/check-g2-compat index 9001a7b..58c6b2f 100755 --- a/check-g2-compat +++ b/check-g2-compat @@ -70,7 +70,7 @@ sub conf { chdir($GL_ADMINDIR); 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", "mirroring used; see docs" ) if $conf =~ m(config +gitolite\.mirror\.); } diff --git a/src/Gitolite/Conf/Load.pm b/src/Gitolite/Conf/Load.pm index 071b3d0..5100a61 100644 --- a/src/Gitolite/Conf/Load.pm +++ b/src/Gitolite/Conf/Load.pm @@ -232,7 +232,6 @@ sub load_1 { my @repos = memberships( 'repo', $repo ); my @users = memberships( 'user', $user, $repo ); - dbg(\@users); trace( 3, "memberships: " . scalar(@repos) . " repos and " . scalar(@users) . " users found" ); for my $r (@repos) { diff --git a/src/commands/writable b/src/commands/writable index f87e370..2b46fa2 100755 --- a/src/commands/writable +++ b/src/commands/writable @@ -8,6 +8,9 @@ use Gitolite::Easy; =for usage Usage: gitolite writable |@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. With 'off', any subsequent text is taken to be the message to be shown to diff --git a/t/reset b/t/reset index fa9bbcf..7805940 100755 --- a/t/reset +++ b/t/reset @@ -14,11 +14,11 @@ use Cwd; my $workdir = getcwd(); confreset;confadd ' - repo foo/..* - C = u1 u2 u3 - RW+ = CREATOR - RW = WRITERS - R = READERS +repo foo/..* + C = u1 u2 u3 + RW+ = CREATOR + RW = WRITERS + R = READERS '; try "ADMIN_PUSH set1; !/FATAL/" or die text();