Newer
Older
Mantis_source-integration / SourceGitweb / post-receive.tmpl
@John Reese John Reese on 17 Mar 2010 345 bytes Re-licensed the project under the MIT license
#!/bin/sh

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

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

URL="http://git.tritarget.org/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}