diff --git a/SourceGitweb/post-receive.tmpl b/SourceGitweb/post-receive.tmpl new file mode 100644 index 0000000..0e60bfe --- /dev/null +++ b/SourceGitweb/post-receive.tmpl @@ -0,0 +1,27 @@ +#!/bin/sh +# Copyright (C) 2008 John Reese, LeetCode.net +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. + +OLDREF="$1" +NEWREF="$2" +HEAD="$3" + +URL="http://localhost/mantisbt/plugin.php?page=Source/checkin" +PROJECT="Repository Name" + +LOG_FILE=`mktemp /tmp/gitweb_${PROJECT}_${NEWREF}_log.XXX` + +CURL=/usr/bin/curl + +${CURL} -d "repo_name=${PROJECT}" -d "data=${NEWREF}" ${URL} >> ${LOG_FILE} + +