gl-conf must be created even if the repo para has only config lines
(i.e., no access rules but only config lines)
This commit is contained in:
parent
c03d107bac
commit
16f2d9b879
|
@ -258,15 +258,18 @@ sub store_1 {
|
||||||
# warning: writes and *deletes* it from %repos and %configs
|
# warning: writes and *deletes* it from %repos and %configs
|
||||||
my ($repo) = shift;
|
my ($repo) = shift;
|
||||||
trace( 3, $repo );
|
trace( 3, $repo );
|
||||||
return unless $repos{$repo} and -d "$repo.git";
|
return unless ( $repos{$repo} or $configs{$repo} ) and -d "$repo.git";
|
||||||
|
|
||||||
my ( %one_repo, %one_config );
|
my ( %one_repo, %one_config );
|
||||||
|
|
||||||
open( my $compiled_fh, ">", "$repo.git/gl-conf" ) or return;
|
open( my $compiled_fh, ">", "$repo.git/gl-conf" ) or return;
|
||||||
|
|
||||||
|
my $dumped_data = '';
|
||||||
|
if ($repos{$repo}) {
|
||||||
$one_repo{$repo} = $repos{$repo};
|
$one_repo{$repo} = $repos{$repo};
|
||||||
delete $repos{$repo};
|
delete $repos{$repo};
|
||||||
my $dumped_data = Data::Dumper->Dump( [ \%one_repo ], [qw(*one_repo)] );
|
$dumped_data = Data::Dumper->Dump( [ \%one_repo ], [qw(*one_repo)] );
|
||||||
|
}
|
||||||
|
|
||||||
if ( $configs{$repo} ) {
|
if ( $configs{$repo} ) {
|
||||||
$one_config{$repo} = $configs{$repo};
|
$one_config{$repo} = $configs{$repo};
|
||||||
|
|
Loading…
Reference in a new issue