Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # finally, hooks must be propagated to all the repos in case they changed
- chdir("$repo_base_abs") or die "chdir $repo_base_abs failed: $!\n";
- for my $repo (`find . -type d -name "*.git"`) {
- chomp ($repo);
- # propagate our own, plus any local admin-defined, hooks
- system("cp $GL_ADMINDIR/src/hooks/* $repo/hooks/");
- chmod 0755, "$repo/hooks/update";
- }
- # oh and one of those repos is a bit more special and has an extra hook :)
- if ( -d "gitolite-admin.git/hooks" ) {
- print "copying post-update hook to gitolite-admin repo...\n";
- system("cp $GL_ADMINDIR/src/ga-post-update-hook gitolite-admin.git/hooks/post-update");
- chmod 0755, "gitolite-admin.git/hooks/post-update";
- }
Add Comment
Please, Sign In to add comment