summaryrefslogtreecommitdiff
path: root/localikiwikicreatesite
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2008-02-13 13:09:26 +0000
committerJonas Smedegaard <dr@jones.dk>2008-02-13 13:09:26 +0000
commitfbca46ae50d61b7f1fac1a61b5f1b381e940f898 (patch)
tree15bc2d9b37f1082a3057d4d62db15904365bd6ae /localikiwikicreatesite
parent95ca5495b4a2a932fb841360fb3c294b064e9779 (diff)
Make Git post-commit hook executable at initialization time, and do it also for the backend repository.
Diffstat (limited to 'localikiwikicreatesite')
-rwxr-xr-xlocalikiwikicreatesite5
1 files changed, 3 insertions, 2 deletions
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 <dr@jones.dk>
#
-# $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"