3 # update-all-config.pl - Update all out-of-date config
8 BEGIN {*VERSION = \'2.0'}
16 eval 'require Pod::Text::Termcap; 1;' and
17 @Pod::Usage
::ISA
= (qw( Pod::Text::Termcap ));
18 defined($ENV{PERLDOC
}) && $ENV{PERLDOC
} ne "" or
19 $ENV{PERLDOC
} = "-oterm -oman";
21 use lib
"__BASEDIR__";
29 $shbin = $Girocco::Config
::posix_sh_bin
;
30 defined($shbin) && $shbin ne "" or $shbin = "/bin/sh";
33 exit(&main
(@ARGV)||0);
35 my ($dryrun, $force, $quiet);
38 pod2usage
(-exitval
=> 2);
42 pod2usage
(-verbose
=> 2, -exitval
=> 0);
46 print basename
($0), " version ", $VERSION, "\n";
50 my ($dmode, $dperm, $drwxmode, $fmode, $fmodeoct, $fperm, $wall);
54 $drwxmode='ug+rwx,o+rx';
62 my $htmlcache_owning_group_id;
63 my $ctags_owning_group_id;
70 close(DATA
) if fileno(DATA
);
71 Getopt
::Long
::Configure
('bundling');
73 'help|h' => sub {do_help
},
74 'version|V' => sub {do_version
},
75 'dry-run|n' => \
$dryrun,
79 $dryrun and $quiet = 0;
81 -f jailed_file
("/etc/group") or
82 die "Girocco group file not found: " . jailed_file
("/etc/group") . "\n";
84 if (!defined($Girocco::Config
::owning_group
) || $Girocco::Config
::owning_group
eq "") {
85 die "\$Girocco::Config::owning_group unset, refusing to run without --force\n" unless $force;
93 warn "Mode 666 in effect\n" unless $quiet;
94 } elsif (($owning_group_id = scalar(getgrnam($Girocco::Config
::owning_group
))) !~ /^\d+$/) {
95 die "\$Girocco::Config::owning_group invalid ($Girocco::Config::owning_group), refusing to run\n";
97 if (defined($owning_group_id) && $Girocco::Config
::htmlcache_owning_group
) {
98 die "\$Girocco::Config::htmlcache_owning_group invalid ($Girocco::Config::htmlcache_owning_group), refusing to run\n"
99 unless ($htmlcache_owning_group_id = scalar(getgrnam($Girocco::Config
::htmlcache_owning_group
))) =~ /^\d+$/;
101 if (defined($owning_group_id) && $Girocco::Config
::ctags_owning_group
) {
102 die "\$Girocco::Config::ctags_owning_group invalid ($Girocco::Config::ctags_owning_group), refusing to run\n"
103 unless ($ctags_owning_group_id = scalar(getgrnam($Girocco::Config
::ctags_owning_group
))) =~ /^\d+$/;
106 my @allprojs = Girocco
::Project
::get_full_list
;
109 my $root = $Girocco::Config
::reporoot
;
110 $root or die "\$Girocco::Config::reporoot is invalid\n";
112 $root ne "" or $root = "/";
113 $root = realpath
($root);
114 $root = $1 if $root =~ m
|^(/.+)$|;
116 my %projnames = map {($_ => 1)} @allprojs;
120 -d
$_ and $_ = realpath
($_);
121 $_ = $1 if $_ =~ m
|^(.+)$|;
124 if (!exists($projnames{$_})) {
125 warn "$_: unknown to Girocco (not in etc/group)\n"
132 @projects = sort {lc($a) cmp lc($b)} @allprojs;
137 foreach (@projects) {
138 my $projdir = "$root/$_.git";
140 warn "$_: does not exist -- skipping\n" unless $quiet;
143 if (!is_git_dir
($projdir)) {
144 warn "$_: is not a .git directory -- skipping\n" unless $quiet;
147 if (-e
"$projdir/.noconfig") {
148 warn "$_: found .noconfig -- skipping\n" unless $quiet;
151 if (!chdir($projdir)) {
152 warn "$_: chdir to project directory failed: $!\n" unless $quiet;
155 process_one_project
($_) or $bad = 1;
161 my (@mkdirs, @mkfiles);
162 my (@fixdpermsdirs, @fixdpermsrwx, @fixfpermsfiles, @fixfpermsdirs);
164 @mkdirs = qw(refs info hooks ctags htmlcache bundles reflogs objects objects/info);
165 @mkfiles = qw(config info/lastactivity);
166 @fixdpermsdirs = qw(. refs info ctags htmlcache bundles reflogs objects objects/info);
167 @fixdpermsrwx = qw(refs objects);
168 @fixfpermsfiles = qw(HEAD config description packed-refs README.html info/lastactivity
169 info/alternates info/http-alternates info/packs);
170 @fixfpermsdirs = qw(ctags);
173 my (@boolvars, @falsevars, @false0vars, @truevars);
175 @boolvars = qw(gitweb.statusupdates);
176 @falsevars = qw(core.ignorecase receive.denynonfastforwards);
177 @false0vars = qw(receive.autogc);
178 @truevars = qw(receive.fsckobjects receive.updateserverinfo repack.writebitmaps transfer.fsckobjects);
184 return defined($_[0]) ?
$_[0] : $_[1];
191 open $duperr, '>&2' or last;
192 my $errfd = POSIX
::open(File
::Spec
->devnull, &POSIX
::O_RDWR
);
193 defined($errfd) or close($duperr), $duperr = undef, last;
194 POSIX
::dup2
($errfd, 2) or close($duperr), $duperr = undef;
195 POSIX
::close($errfd);
198 my $ans = open $fd, '-|', "find", @_;
199 if ($noe && defined($duperr) && defined(fileno($duperr))) {
200 POSIX
::dup2
(fileno($duperr), 2);
203 $ans or die "find failed: $!\n";
207 sub openfind
{ return openfind_
(0, @_); }
208 sub openfindne
{ return openfind_
(1, @_); }
214 my ($i,$r) = (index($_,"."),rindex($_,"."));
215 substr($_,$i+1,$r-$i-1);
216 } grep(/^remote\.[^.].*\.url$/i, keys(%$config)));
219 sub has_default_fetch_spec
222 my $default = $config->{'remotes.default'};
223 my @remotes = defined($default) ?
split(' ', $default) : all_remotes
($config);
225 defval
($config->{"remote.$_.url"},"") ne "" or next;
226 !defined($default) && git_bool
($config->{"remote.$_.skipdefaultupdate"}) and next;
227 defval
($config->{"remote.$_.fetch"},"") ne "" and return 1;
232 sub is_native_git_mirror_url
235 defined($bu) && $bu ne "" or return 0;
236 # All current or former natively supported by Git URLs return true:
237 # 1. rsync: (removed in 2.8.0, also recognize rsync+ and rsync::)
238 # 2. ftp:/ftps: (strongly discouraged)
240 # 4. http:/https: (smart and non-smart)
242 # 6. scp-like ssh syntax [user@]host:[^:/]
249 (?
:[^\s
:\@
]+\@
)?
[^\s
:\@
+]+:(?
!\
/\/)[^\s
:\\]
253 sub process_one_project
262 warn "$proj: bypassing project, exists but not directory: $_\n" unless $quiet;
263 $reallybad = $bad = 1;
266 my $grpid = $owning_group_id;
267 $grpid = $htmlcache_owning_group_id
268 if $htmlcache_owning_group_id && $_ eq "htmlcache";
269 $grpid = $ctags_owning_group_id
270 if $ctags_owning_group_id && $_ eq "ctags";
271 do_mkdir
($proj, $_, $grpid) or $bad = 1, last;
275 return 0 if $reallybad;
277 -d
$_ && check_dperm
($proj, $_) or $bad = 1 foreach (@fixdpermsdirs);
278 my $fp = openfindne
(@fixdpermsrwx, qw(-xdev -type d ( ! -path objects/?? -o -prune ) ! -perm
), "-$drwxmode", "-print");
281 change_dpermrwx
($proj, $_) or $bad = 1;
283 close($fp) or $bad = 1;
284 $fp = openfind
(qw(. -xdev -type d ( ! -path ./objects/?? -o -prune ) ! -perm
-a
+rx
-print));
287 change_dpermrx
($proj, $_) or $bad = 1;
289 close($fp) or $bad = 1;
294 warn "$proj: bypassing project, exists but not file: $_\n" unless $quiet;
295 $reallybad = $bad = 1;
299 my $result = "(dryrun)";
303 open($tf, '>', $_) && close ($tf) or $result = "FAILED", $bad = 1;
305 pmsg
($proj, "$_: created", $result) unless $quiet;
308 return 0 if $reallybad;
310 $dryrun || check_fperm
($proj, "config") or $bad = 1;
311 my $config = read_config_file_hash
("config", !$quiet);
312 if (!defined($config)) {
313 warn "$proj: could not read config file -- skipping\n" unless $quiet;
317 my $do_config = sub {
318 my ($item, $val) = @_;
319 my $oldval = defval
($config->{$item},"");
320 my $result = "(dryrun)";
323 system($Girocco::Config
::git_bin
, "config", "--file", "config", "--replace-all", $item, $val) == 0 or
324 $result = "FAILED", $bad = 1;
326 if (!exists($config->{$item})) {
327 pmsg
($proj, "config $item: created \"$val\"", $result) unless $quiet;
329 pmsg
($proj, "config $item: \"$oldval\" -> \"$val\"", $result) unless $quiet;
332 my $do_config_unset = sub {
333 my ($item, $msg) = @_;
334 defined($msg) or $msg = "";
335 $msg eq "" or $msg = " " . $msg;
336 my $oldval = defval
($config->{$item},"");
337 my $result = "(dryrun)";
340 system($Girocco::Config
::git_bin
, "config", "--file", "config", "--unset-all", $item) == 0 or
341 $result = "FAILED", $bad = 1;
343 pmsg
($proj, "config $item: removed$msg \"$oldval\"", $result) unless $quiet;
346 my $repovers = $config->{'core.repositoryformatversion'};
347 if (!defined($repovers)) {
349 } elsif ($repovers =~ /^[2345]$/) {
350 pmsg
($proj, "WARNING: unknown core.repositoryformatversion value left unchanged: \"$repovers\"");
351 } elsif ($repovers !~ /^[01]$/) {
352 pmsg
($proj, "WARNING: replacing invalid core.repositoryformatversion value: \"$repovers\"") unless $quiet;
355 &$do_config('core.repositoryformatversion', 0) if $repovers eq "";
356 my $hookspath = $Girocco::Config
::reporoot
. "/_global/hooks";
357 my $cfghooks = defval
($config->{'core.hookspath'},"");
358 if ($cfghooks ne $hookspath) {
359 my $updatehookspath = 1;
360 $hookspath = $Girocco::Config
::reporoot
. "/$proj.git/hooks" if $Girocco::Config
::localhooks
;
361 if ($cfghooks =~ m{^/[^/]} && -d
$cfghooks && -d
"hooks") {
362 # tolerate this situation provided the realpath of $cfghooks
363 # matches the realpath of the hooks subdirectory and the hooks
364 # subdirectory exists; actually making sure the correct symlinks
365 # are present remains up to update-all-hooks not us
366 if (realpath
($cfghooks) eq realpath
("hooks")) {
367 # we do, however, insist that it be stored exactly
368 # as $reporoot/<project_name>.git/hooks in this case because
369 # that's the only guaranteed version that works in the chroot
370 $hookspath = $Girocco::Config
::reporoot
. "/$proj.git/hooks";
371 $cfghooks eq $hookspath and $updatehookspath = 0;
374 &$do_config('core.hookspath', $hookspath) if $updatehookspath;
376 my $cmplvl = defval
($config->{'core.compression'},"");
377 if ($cmplvl !~ /^-?\d+$/ || $cmplvl < -1 || $cmplvl > 9 || "" . (0 + $cmplvl) ne "" . $cmplvl) {
378 pmsg
($proj, "WARNING: replacing invalid core.compression value: \"$cmplvl\"") unless $cmplvl eq "" || $quiet;
380 } elsif ($cmplvl != 5) {
381 pmsg
($proj, "WARNING: suboptimal core.compression value left unchanged: \"$cmplvl\"") unless $quiet;
383 $cmplvl ne "" or &$do_config('core.compression', 5);
384 my $grpshr = defval
($config->{'core.sharedrepository'},"");
385 if ($grpshr eq "" || (valid_bool
($grpshr) && !git_bool
($grpshr))) {
386 &$do_config('core.sharedrepository', 1);
387 } elsif (!(valid_bool
($grpshr) && git_bool
($grpshr))) {
388 pmsg
($proj, "WARNING: odd core.sharedrepository value left unchanged: \"$grpshr\"");
390 if (git_bool
($config->{'core.bare'})) {
392 my $laru = $config->{'core.logallrefupdates'};
393 if (defined($laru)) {
394 if (valid_bool
($laru)) {
396 if (git_bool
($laru)) {
397 pmsg
($proj, "WARNING: core.logallrefupdates is true (left unchanged)")
398 unless $quiet || -d
"worktrees";
401 pmsg
($proj, "WARNING: replacing non-boolean core.logallrefupdates value") unless $quiet;
404 !$setlaru or &$do_config('core.logallrefupdates', 'false');
406 pmsg
($proj, "WARNING: core.bare is not true (left unchanged)") unless $quiet;
408 my $precious = defval
($config->{'extensions.preciousobjects'},"");
409 valid_bool
($precious) && git_bool
($precious) or &$do_config('extensions.preciousobjects', 'true');
410 defval
($config->{'transfer.unpacklimit'},"") eq "1" or &$do_config('transfer.unpacklimit', 1);
411 lc(defval
($config->{'receive.denydeletecurrent'},"")) eq "warn" or &$do_config('receive.denydeletecurrent', 'warn');
413 !exists($config->{$_}) || valid_bool
(defval
($config->{$_},"")) or &$do_config_unset($_, "(not a boolean)");
414 } foreach (@boolvars);
416 (valid_bool
(defval
($config->{$_},"")) && !git_bool
($config->{$_})) or &$do_config($_, "false");
417 } foreach (@falsevars);
419 (valid_bool
(defval
($config->{$_},"")) && !git_bool
($config->{$_})) or &$do_config($_, 0);
420 } foreach (@false0vars);
422 (valid_bool
(defval
($config->{$_},"")) && git_bool
($config->{$_})) or &$do_config($_, "true");
423 } foreach (@truevars);
425 if (defined($Girocco::Config
::owning_group
) && $Girocco::Config
::owning_group
ne "") {
426 $fp = openfind
(qw(. -xdev ( -type d -o -type f ) ! -group
), $Girocco::Config
::owning_group
, "-print");
429 my $grpid = $owning_group_id;
430 $grpid = $htmlcache_owning_group_id if $htmlcache_owning_group_id && m{^\./htmlcache(?:/|$)}i;
431 $grpid = $ctags_owning_group_id if $ctags_owning_group_id && m{^\./ctags(?:/|$)}i;
432 change_group
($proj, $_, $grpid) or $bad = 1;
434 close($fp) or $bad = 1;
436 foreach (@fixfpermsfiles) {
439 warn "$proj: bypassing project, exists but not file: $_\n" unless $quiet;
440 $reallybad = $bad = 1;
443 check_fperm
($proj, $_) or $bad = 1;
446 return 0 if $reallybad;
448 $fp = openfindne
(@fixfpermsdirs, qw(-xdev -type f ! -perm), $fmodeoct, "-print");
451 check_fperm
($proj, $_) or $bad = 1;
453 close($fp) or $bad = 1;
454 $fp = openfind
(qw(. -xdev -type f ! -perm -a+r -print));
457 check_fpermr
($proj, $_) or $bad = 1;
459 close($fp) or $bad = 1;
460 $fp = openfind
(qw(. -xdev -type d ( -path ./hooks -o -path ./mob/hooks ) -prune
-o
-type f
( -perm
-u
=x
-o
-perm
-g
=x
-o
-perm
-o
=x
) -print));
463 check_fpermnox
($proj, $_) or $bad = 1;
465 close($fp) or $bad = 1;
467 my $bu = defval
($config->{'gitweb.baseurl'},"");
469 $bu eq "" or pmsg
($proj, "WARNING: .nofetch exists but gitweb.baseurl is not empty ($bu)") unless $quiet;
472 if (has_default_fetch_spec
($config)) {
473 pmsg
($proj, "WARNING: gitweb.baseurl is empty and .nofetch does not exist but fetch spec does") unless $quiet;
475 pmsg
($proj, "WARNING: gitweb.baseurl is empty and .nofetch does not exist") unless $quiet;
477 } elsif (is_native_git_mirror_url
($bu) && !has_default_fetch_spec
($config)) {
478 pmsg
($proj, "WARNING: gitweb.baseurl is not empty but fetch spec is") unless $quiet;
487 my ($proj, $subdir, $grpid) = @_;
490 mkdir($subdir) && -d
"$subdir" or $result = "FAILED";
491 if ($grpid && $grpid != $owning_group_id) {
492 my @info = stat($subdir);
493 if (@info < 6 || $info[2] eq "" || $info[4] eq "" || $info[5] eq "") {
495 } elsif ($info[5] != $grpid) {
496 if (!chown($info[4], $grpid, $subdir)) {
498 warn "chgrp: ($proj) $subdir: $!\n" unless $quiet;
499 } elsif (!chmod($info[2] & 07777, $subdir)) {
501 warn "chmod: ($proj) $subdir: $!\n" unless $quiet;
506 $result = "(dryrun)";
508 pmsg
($proj, "$subdir/: created", $result);
509 return $result ne "FAILED";
513 my ($proj, $subdir) = @_;
514 my $oldmode = (stat($subdir))[2];
515 if (!defined($oldmode) || $oldmode eq "") {
516 warn "chmod: ($proj) $subdir: No such file or directory\n" unless $quiet;
519 my $newmode = ($oldmode & ~07777) | $dmode;
520 $newmode == $oldmode and return 1;
523 if (!chmod($newmode & 07777, $subdir)) {
525 warn "chmod: ($proj) $subdir: $!\n" unless $quiet;
528 $result = "(dryrun)";
530 pmsg
($proj, "$subdir/:", get_mode_perm
($oldmode), '->', get_mode_perm
($newmode), $result);
531 return $result ne "FAILED";
534 sub change_dpermrwx
{
535 my ($proj, $subdir) = @_;
536 my $oldmode = (stat($subdir))[2];
537 if (!defined($oldmode) || $oldmode eq "") {
538 warn "chmod: ($proj) $subdir: No such file or directory\n" unless $quiet;
541 my $newmode = $oldmode | ($wall ?
0777 : 0775);
542 $newmode == $oldmode and return 1;
545 if (!chmod($newmode & 07777, $subdir)) {
547 warn "chmod: ($proj) $subdir: $!\n" unless $quiet;
550 $result = "(dryrun)";
552 pmsg
($proj, "$subdir/:", get_mode_perm
($oldmode), '->', get_mode_perm
($newmode), $result);
553 return $result ne "FAILED";
557 my ($proj, $subdir) = @_;
559 my $oldmode = (stat($subdir))[2];
560 if (!defined($oldmode) || $oldmode eq "") {
561 warn "chmod: ($proj) $subdir: No such file or directory\n" unless $quiet;
564 my $newmode = $oldmode | 0555;
565 $newmode == $oldmode and return 1;
568 if (!chmod($newmode & 07777, $subdir)) {
570 warn "chmod: ($proj) $subdir: $!\n" unless $quiet;
573 $result = "(dryrun)";
575 pmsg
($proj, "$subdir/:", get_mode_perm
($oldmode), '->', get_mode_perm
($newmode), $result);
576 return $result ne "FAILED";
580 my ($proj, $file) = @_;
581 my $oldmode = (stat($file))[2];
582 if (!defined($oldmode) || $oldmode eq "") {
583 warn "chmod: ($proj) $file: No such file or directory\n" unless $quiet;
586 my $newmode = ($oldmode & ~07777) | $fmode;
587 $newmode == $oldmode and return 1;
590 if (!chmod($newmode & 07777, $file)) {
592 warn "chmod: ($proj) $file: $!\n" unless $quiet;
595 $result = "(dryrun)";
597 pmsg
($proj, "$file:", get_mode_perm
($oldmode), '->', get_mode_perm
($newmode), $result);
598 return $result ne "FAILED";
602 my ($proj, $file) = @_;
604 my $oldmode = (stat($file))[2];
605 if (!defined($oldmode) || $oldmode eq "") {
606 warn "chmod: ($proj) $file: No such file or directory\n" unless $quiet;
609 my $newmode = $oldmode | 0444;
610 $newmode == $oldmode and return 1;
613 if (!chmod($newmode & 07777, $file)) {
615 warn "chmod: ($proj) $file: $!\n" unless $quiet;
618 $result = "(dryrun)";
620 pmsg
($proj, "$file:", get_mode_perm
($oldmode), '->', get_mode_perm
($newmode), $result);
621 return $result ne "FAILED";
625 my ($proj, $file) = @_;
627 my $oldmode = (stat($file))[2];
628 if (!defined($oldmode) || $oldmode eq "") {
629 warn "chmod: ($proj) $file: No such file or directory\n" unless $quiet;
632 my $newmode = $oldmode & ~0111;
633 $newmode == $oldmode and return 1;
636 if (!chmod($newmode & 07777, $file)) {
638 warn "chmod: ($proj) $file: $!\n" unless $quiet;
641 $result = "(dryrun)";
643 pmsg
($proj, "$file:", get_mode_perm
($oldmode), '->', get_mode_perm
($newmode), $result);
644 return $result ne "FAILED";
648 my ($proj, $item, $grpid) = @_;
650 my @info = stat($item);
651 if (@info < 6 || $info[2] eq "" || $info[4] eq "" || $info[5] eq "") {
652 warn "chgrp: ($proj) $item: No such file or directory\n" unless $quiet;
655 $info[5] == $grpid and return 1;
658 if (!chown($info[4], $grpid, $item)) {
660 warn "chgrp: ($proj) $item: $!\n" unless $quiet;
661 } elsif (!chmod($info[2] & 07777, $item)) {
663 warn "chmod: ($proj) $item: $!\n" unless $quiet;
666 $result = "(dryrun)";
668 my $isdir = ((($info[2] >> 12) & 017) == 004) ?
'/' : '';
669 pmsg
($proj, "$item$isdir: group", get_grp_nam
($info[5]), '->', get_grp_nam
($grpid), $result);
670 return $result ne "FAILED";
673 my $wrote; BEGIN {$wrote = ""}
676 my $msg = join(" ", @_);
680 $prefix = $wrote . $proj . ":\n";
683 print $prefix, " ", join(' ', @_), "\n";
720 my $str = $ftypes{($mode >> 12) & 017} .
721 $fperms{($mode >> 6) & 7} .
722 $fperms{($mode >> 3) & 7} .
724 substr($str,3,1) = ($mode & 0100) ?
's' : 'S' if $mode & 04000;
725 substr($str,6,1) = ($mode & 0010) ?
's' : 'S' if $mode & 02000;
726 substr($str,9,1) = ($mode & 0001) ?
't' : 'T' if $mode & 01000;
731 my $mode = (stat($_[0]))[2];
732 defined($mode) or return '??????????';
733 return get_mode_perm
($mode);
738 defined($grpid) or return '?';
739 my $grpnm = scalar(getgrgid($grpid));
740 return defined($grpnm) && $grpnm ne "" ?
$grpnm : $grpid;
744 my $grp = (stat($_[0]))[5];
745 defined($grp) or return '?';
746 return get_grp_nam
($grp);
753 update-all-config.pl - Update all projects' config settings
757 update-all-config.pl [<options>] [<projname>]...
760 -h | --help detailed instructions
761 -V | --version show version
762 -n | --dry-run show what would be done but don't do it
763 -f | --force run without a Config.pm owning_group
764 -q | --quiet suppress change messages
766 <projname> if given, only operate on these projects
772 =item B<-h>, B<--help>
774 Print the full description of update-all-config.pl's options.
776 =item B<-V>, B<--version>
778 Print the version of update-all-config.pl.
780 =item B<-n>, B<--dry-run>
782 Do not actually make any changes, just show what would be done without
785 =item B<-q>, B<--quiet>
787 Suppress the messages about what's actually being changed. This option
788 is ignored if B<--dry-run> is in effect.
790 The warnings about missing and unknown-to-Girocco projects are also
791 suppressed by this option.
793 =item B<-f>, B<--force>
795 Allow running without a $Girocco::Config::owning_group set. This is not
796 recommended as it results in world-writable items being used (instead of
797 just world-readable).
801 If no project names are specified then I<all> projects are processed.
803 If one or more project names are specified then only those projects are
804 processed. Specifying non-existent projects produces a warning for them,
805 but the rest of the projects specified will still be processed.
807 Each B<projname> may be either a full absolute path starting with
808 $Girocco::Config::reporoot or just the project name part with or without
811 Any explicitly specified projects that do exist but are not known to
812 Girocco will be skipped (with a warning).
818 Inspect the C<config> files of Girocco projects (i.e. $GIT_DIR/config) and
819 look for anomalies and out-of-date settings.
821 Additionally check the existence and permissions on various files and
822 directories in the project.
824 If an explicity specified project is located under $Girocco::Config::reporoot
825 but is not actually known to Girocco (i.e. it's not in the etc/group file)
826 then it will be skipped.
828 By default, any anomalies or out-of-date settings will be corrected with a
829 message to that effect. However using B<--dry-run> will only show the
830 correction(s) which would be made without making them and B<--quiet> will make
831 the correction(s) without any messages.
833 Any projects that have a C<$GIT_DIR/.noconfig> file are always skipped (with a
834 message unless B<--quiet> is used).