Newer
Older
Mantis_source-integration / SourceGitweb / post-receive.tmpl
@John Reese John Reese on 6 Jun 2011 337 bytes Remove rogue url from gitweb hook
#!/bin/sh

# Copyright (c) 2010 John Reese
# Licensed under the MIT license

read LINE
LINE=`echo $LINE | sed -e 's/ /+/g'`

URL="http://localhost/mantisbt/plugin.php?page=Source/checkin"
PROJECT="test"

CURL=/usr/bin/curl

echo "Updating Changeset to Mantis Bug Tracker"
${CURL} -s -S -d "repo_name=${PROJECT}" -d "data=${LINE}" ${URL}