At sftp://[email protected]/srv/bzr/administration/

------------------------------------------------------------
revno: 240
revision-id: [email protected]
parent: [email protected]
committer: root <[email protected]>
branch nick: infra
timestamp: Sat 2010-07-31 18:58:04 -0400
message:
  Notes on Git's support for CIA notifications
modified:
  git.txt                        
x_root_<[email protected]>_Sun_Jun__4_15:56:39_2006_25310.0
=== modified file 'git.txt'
--- a/git.txt   2010-01-01 19:34:14 +0000
+++ b/git.txt   2010-07-31 22:58:04 +0000
@@ -241,3 +241,27 @@
 cat <<'EOF' >> /etc/cron.d/sv_vcs
 */15 * * * *    root    /usr/src/infra/git/refresh-project-list.sh && 
/usr/src/infra/git/sv_cgit.pl
 EOF
+
+
+
+# CIA notification
+# ================
+
+cd /srv/git
+umask 002
+project=XXX
+dir_git=${project}.git
+
+cat <<'EOF' > $dir_git/hooks/post-commit
+#!/bin/bash
+exec run-parts hooks/post-commit.d
+EOF
+chmod 755 $dir_git/hooks/post-commit
+chattr -i $dir_git/hooks
+mkdir -m 755 $dir_git/hooks/post-commit.d
+chattr +i $dir_git/hooks
+
+GIT_DIR=$dir_git git config ciabot.xmlrpc true
+GIT_DIR=$dir_git git config ciabot.project $project
+GIT_DIR=$dir_git git config ciabot.repo $project.git
+ln -s /usr/src/git/contrib/ciabot/ciabot.py $dir_git/hooks/post-commit.d/


_______________________________________________
Savannah-cvs mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/savannah-cvs

Reply via email to