Newer
Older
Mantis_source-integration / SourceGitweb / post-receive.tmpl
@John Reese John Reese on 25 Apr 2012 337 bytes Update copyrights
#!/bin/sh

# Copyright (c) 2012 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}