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'!
redis v0.02
Sitaram Chamarty 2012-03-30 23:57:54 +05:30
parent 2c1f46c055
commit 4e093d5909
1 changed files with 1 additions and 0 deletions

View File

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