summaryrefslogtreecommitdiff
path: root/repo
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-03-26 09:09:41 -0400
committerEric S. Raymond <esr@thyrsus.com>2010-03-26 09:09:41 -0400
commitde89b297ee8a231fe4071d3503e39a78645b7bbf (patch)
tree746056867d5d5f1892904324099fbb1f66ae7c36 /repo
parentdbc8645ca5501ff433988c5e18b6771215eb2861 (diff)
downloadgpsd-de89b297ee8a231fe4071d3503e39a78645b7bbf.tar.gz
Last commit broke something, do partial revert.
Diffstat (limited to 'repo')
-rwxr-xr-xrepo/hooks/ciabot.sh18
1 files changed, 5 insertions, 13 deletions
diff --git a/repo/hooks/ciabot.sh b/repo/hooks/ciabot.sh
index 703be448..ac57cf24 100755
--- a/repo/hooks/ciabot.sh
+++ b/repo/hooks/ciabot.sh
@@ -2,11 +2,9 @@
# Distributed under the terms of the GNU General Public License v2
# Copyright (c) 2006 Fernando J. Pereda <ferdy@gentoo.org>
# Copyright (c) 2008 Natanael Copa <natanael.copa@gmail.com>
-# Copyright (c) 2010 Eric S. Raymond <esr@thyrsus.com>
#
# 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:
@@ -27,26 +25,20 @@
# 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"
-# 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}"
-#
-# No user-serviceable parts below this line
-#
-
-PATH="$PATH:`git --exec-path`
+# 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.alpinelinux.org/cgit/$repo/commit/?id="
+# You shouldn't be touching anything else.
if [ $# -eq 0 ] ; then
refname=$(git symbolic-ref HEAD 2>/dev/null)
merged=$(git rev-parse HEAD)