(minor) do not purge projects.list if GL_NO_DAEMON_NO_GITWEB set
The code that sets %projlist doesn't even run if GL_NO_DAEMON_NO_GITWEB is set, so it doesn't make sense to then *use* that (empty) variable and effectively wipe out the projects.list file. Thanks to m0 for asking...
This commit is contained in:
parent
bf7516b2c4
commit
b7944ed4d1
|
@ -549,12 +549,14 @@ for my $repo (@phy_repos) {
|
|||
setup_git_configs($repo, \%git_configs) if $git_configs{$repo};
|
||||
}
|
||||
|
||||
# write out the project list
|
||||
my $projlist_fh = wrap_open( ">", $PROJECTS_LIST);
|
||||
for my $proj (sort keys %projlist) {
|
||||
# write out the project list, but not if GL_NO_DAEMON_NO_GITWEB is set
|
||||
unless ($GL_NO_DAEMON_NO_GITWEB) {
|
||||
my $projlist_fh = wrap_open( ">", $PROJECTS_LIST);
|
||||
for my $proj (sort keys %projlist) {
|
||||
print $projlist_fh "$proj\n";
|
||||
}
|
||||
close $projlist_fh;
|
||||
}
|
||||
close $projlist_fh;
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# "compile" ssh authorized_keys
|
||||
|
|
Loading…
Reference in a new issue