Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

install: can't assume p-t-a is setup!

make installing the p-u hook conditional to avoid ugly error
  • Loading branch information...
commit 9d2c9662a21044576d7ef4361d8bc22bc85deea9 1 parent af7fd0b
Sitaram Chamarty authored
Showing with 7 additions and 4 deletions.
  1. +7 −4 src/
11 src/
@@ -66,7 +66,10 @@ sub wrap_mkdir
# oh and one of those repos is a bit more special and has an extra hook :)
-system("cp $GL_ADMINDIR/src/ gitolite-admin.git/hooks/post-update");
-system("perl", "-i", "-p", "-e", "s(export GL_ADMINDIR=.*)(export GL_ADMINDIR=$GL_ADMINDIR)",
- "gitolite-admin.git/hooks/post-update");
-chmod 0755, "gitolite-admin.git/hooks/post-update";
+if ( -d "gitolite-admin.git/hooks" ) {
+ print STDERR "copying post-update hook to gitolite-admin repo...\n";
+ system("cp -v $GL_ADMINDIR/src/ gitolite-admin.git/hooks/post-update");
+ system("perl", "-i", "-p", "-e", "s(export GL_ADMINDIR=.*)(export GL_ADMINDIR=$GL_ADMINDIR)",
+ "gitolite-admin.git/hooks/post-update");
+ chmod 0755, "gitolite-admin.git/hooks/post-update";
Please sign in to comment.
Something went wrong with that request. Please try again.