Guest User

Untitled

a guest
Jul 22nd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. # finally, hooks must be propagated to all the repos in case they changed
  2. chdir("$repo_base_abs") or die "chdir $repo_base_abs failed: $!\n";
  3. for my $repo (`find . -type d -name "*.git"`) {
  4. chomp ($repo);
  5. # propagate our own, plus any local admin-defined, hooks
  6. system("cp $GL_ADMINDIR/src/hooks/* $repo/hooks/");
  7. chmod 0755, "$repo/hooks/update";
  8. }
  9.  
  10. # oh and one of those repos is a bit more special and has an extra hook :)
  11. if ( -d "gitolite-admin.git/hooks" ) {
  12. print "copying post-update hook to gitolite-admin repo...\n";
  13. system("cp $GL_ADMINDIR/src/ga-post-update-hook gitolite-admin.git/hooks/post-update");
  14. chmod 0755, "gitolite-admin.git/hooks/post-update";
  15. }
Add Comment
Please, Sign In to add comment