From dbc8645ca5501ff433988c5e18b6771215eb2861 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 26 Mar 2010 08:43:29 -0400 Subject: Document the ciabot.sh variables a bit better. --- repo/hooks/ciabot.sh | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'repo/hooks') diff --git a/repo/hooks/ciabot.sh b/repo/hooks/ciabot.sh index 3447afc7..703be448 100755 --- a/repo/hooks/ciabot.sh +++ b/repo/hooks/ciabot.sh @@ -2,9 +2,11 @@ # Distributed under the terms of the GNU General Public License v2 # Copyright (c) 2006 Fernando J. Pereda # Copyright (c) 2008 Natanael Copa +# Copyright (c) 2010 Eric S. Raymond # # Git CIA bot in bash. (no, not the POSIX shell, bash). # It is *heavily* based on Git ciabot.pl by Petr Baudis. +# This script contains porcelain and porcelain byproducts. # # It is meant to be run either on a post-commit hook or in an update # hook: @@ -25,18 +27,26 @@ # The project as known to CIA project="GPSD" repo="${REPO:-gpsd}" +echo "REPO=$REPO" # Addresses for the e-mail from="esr@thyrsus.com" to="cia@cia.vc" -# SMTP client to use +# Changeset URL prefix for your repo: when the commit ID is appended +# to this, it should point at a CGI that will display the commit +# through gitweb or something similar. +urlprefix="http://git.berlios.de/cgi-bin/gitweb.cgi?p=$repo;a=commit;h=" + +# SMTP client to use - may need to edit the absolute pathname for your system sendmail="/usr/sbin/sendmail -t -f ${from}" -# Changeset URL -urlprefix="http://git.alpinelinux.org/cgit/$repo/commit/?id=" +# +# No user-serviceable parts below this line +# + +PATH="$PATH:`git --exec-path` -# You shouldn't be touching anything else. if [ $# -eq 0 ] ; then refname=$(git symbolic-ref HEAD 2>/dev/null) merged=$(git rev-parse HEAD) -- cgit v1.2.1