diff --git a/SourceGitweb/post-receive.tmpl b/SourceGitweb/post-receive.tmpl index 895bf39..3a0c75b 100644 --- a/SourceGitweb/post-receive.tmpl +++ b/SourceGitweb/post-receive.tmpl @@ -11,17 +11,13 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. -OLDREF="$1" -NEWREF="$2" -HEAD="$3" +read LINE +LINE=`echo $LINE | sed -e 's/ /+/g'` -URL="http://localhost/mantisbt/plugin.php?page=Source/checkin" -PROJECT="Repository Name" - -LOG_FILE=`mktemp /tmp/gitweb_${PROJECT}_${NEWREF}_log.XXX` +URL="http://git.tritarget.org/mantisbt/plugin.php?page=Source/checkin" +PROJECT="test" CURL=/usr/bin/curl -${CURL} -d "repo_name=${PROJECT}" -d "data=${NEWREF}" ${URL} >> ${LOG_FILE} - - +echo "Updating Changeset to Mantis Bug Tracker" +${CURL} -s -S -d "repo_name=${PROJECT}" -d "data=${LINE}" ${URL}