From 4e093d5909eec9447f04ee97b115a070ae3a0d92 Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Fri, 30 Mar 2012 23:57:54 +0530 Subject: [PATCH] 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'! --- src/Gitolite/Conf/Store.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Gitolite/Conf/Store.pm b/src/Gitolite/Conf/Store.pm index 0c917ac..a568a3b 100644 --- a/src/Gitolite/Conf/Store.pm +++ b/src/Gitolite/Conf/Store.pm @@ -197,6 +197,7 @@ sub hook_repos { for my $repo (`find . -name "*.git" -prune`) { chomp($repo); $repo =~ s/\.git$//; + $repo =~ s(^\./)(); hook_1($repo); } }