aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSitaram Chamarty <sitaram@atc.tcs.com>2017-01-16 20:36:30 +0530
committerSitaram Chamarty <sitaram@atc.tcs.com>2017-01-16 20:36:30 +0530
commit7c8f0abb0eadfd768e8996fd0ed04172401b3116 (patch)
treeaa0c9d997a8f4a4acc1acfa7e8c405f041654a00
parentminor oopsie in checking return code of "do" (diff)
downloadgitolite-gentoo-7c8f0abb0eadfd768e8996fd0ed04172401b3116.tar.gz
gitolite-gentoo-7c8f0abb0eadfd768e8996fd0ed04172401b3116.tar.bz2
gitolite-gentoo-7c8f0abb0eadfd768e8996fd0ed04172401b3116.zip
eliminate race (loaded systems only?) that makes gl-conf look empty
-rw-r--r--src/lib/Gitolite/Conf/Store.pm5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/Gitolite/Conf/Store.pm b/src/lib/Gitolite/Conf/Store.pm
index 5568b3f..c7f9ab5 100644
--- a/src/lib/Gitolite/Conf/Store.pm
+++ b/src/lib/Gitolite/Conf/Store.pm
@@ -288,8 +288,6 @@ sub store_1 {
my ( %one_repo, %one_config );
- open( my $compiled_fh, ">", "$repo.git/gl-conf" ) or return;
-
my $dumped_data = '';
if ( $repos{$repo} ) {
$one_repo{$repo} = $repos{$repo};
@@ -303,8 +301,7 @@ sub store_1 {
$dumped_data .= Data::Dumper->Dump( [ \%one_config ], [qw(*one_config)] );
}
- print $compiled_fh $dumped_data;
- close $compiled_fh;
+ _print( "$repo.git/gl-conf", $dumped_data );
$split_conf{$repo} = 1;
}