From fbca46ae50d61b7f1fac1a61b5f1b381e940f898 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 13 Feb 2008 13:09:26 +0000 Subject: Make Git post-commit hook executable at initialization time, and do it also for the backend repository. --- localikiwikicreatesite | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'localikiwikicreatesite') diff --git a/localikiwikicreatesite b/localikiwikicreatesite index f3cea73..b95949f 100755 --- a/localikiwikicreatesite +++ b/localikiwikicreatesite @@ -3,7 +3,7 @@ # /usr/local/bin/localikiwikicreatesite # Copyright 2008 Jonas Smedegaard # -# $Id: localikiwikicreatesite,v 1.10 2008-02-13 12:56:17 jonas Exp $ +# $Id: localikiwikicreatesite,v 1.11 2008-02-13 13:09:26 jonas Exp $ # # Initialize ikiwiki site # @@ -115,6 +115,7 @@ git commit -m "initial commit" git remote add origin $DESTSRCDIR/${project}_content.git git config branch.master.merge refs/heads/master git push --all +chmod +x $DESTSRCDIR/${project}_content.git/hooks/post-update ) ## Init backend RCS @@ -127,6 +128,7 @@ git commit -m "initial commit" git remote add origin $DESTSRCDIR/$project.git git config branch.master.merge refs/heads/master git push --all +chmod +x $DESTSRCDIR/${project}.git/hooks/post-update ) ## Adjust backend to actual paths, and enable Git post-update wrapper @@ -142,7 +144,6 @@ perl -0 -pi -e ' ' $CFGDIR/ikiwiki.setup ( perl -0 -pi -e 's,\n(exec\s[^\n]*),\nhooks/post-update-'"$project"'\n\n$1,' $DESTSRCDIR/${project}_content.git/hooks/post-update -chmod +x $DESTSRCDIR/${project}_content.git/hooks/post-update cd $CFGDIR git add ikiwiki.setup git commit -m "Adjust ikiwiki.setup to use actual paths, and add+enable Git post-update hooks" -- cgit v1.2.3