Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SourceCgit/SourceCgit.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ public function commit_parents( $p_input ) {
* @return string
*/
public function commit_message( $p_input ) {
preg_match( "#<div class='commit-subject'>(.*?)(<a class=|</div>)#", $p_input, $t_matches);
preg_match( "#<div class='commit-subject'>(.*?)(<span class='decoration'>|<a class=|</div>)#", $p_input, $t_matches);
$t_message = trim( str_replace( '<br/>', PHP_EOL, $t_matches[1] ) );

# Strip ref links and signoff spans from commit message
Expand Down
13 changes: 13 additions & 0 deletions SourceCgit/post-receive.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh

# This is a secret password to be used by services sending commit data to Mantis.
API_KEY=6dcde9b4c68c4507f68b6ec3
# Repository ID
ID=11

CURL=/usr/bin/curl

URL="http://localhost/mantis/plugin.php?page=Source/import&api_key=${API_KEY}&id=${ID}"

echo "Updating Changeset to Mantis Bug Tracker"
${CURL} ${URL}