migration bug: admin repo hooks not updated by 'gitolite setup'

because the loop in the code below was sending out $repo =
'./gitolite-admin.git' to hook_1(), inside which there is an explicit
check for 'gitolite-admin', which of course doesn't match
'./gitolite-admin'!
This commit is contained in:
Sitaram Chamarty 2012-03-30 23:57:54 +05:30
parent 2c1f46c055
commit 4e093d5909

View file

@ -197,6 +197,7 @@ sub hook_repos {
for my $repo (`find . -name "*.git" -prune`) { for my $repo (`find . -name "*.git" -prune`) {
chomp($repo); chomp($repo);
$repo =~ s/\.git$//; $repo =~ s/\.git$//;
$repo =~ s(^\./)();
hook_1($repo); hook_1($repo);
} }
} }