X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=MTrack%2FSCM%2FGit%2FCommitHookBridge.php;h=328c93b88de7c6055cdefc519e3f8657234fc3a8;hb=298c0ef1bfd6b1e156ed71fd32d5fdd5c610336c;hp=2c5dee21b4403976523a0295d6b85b451b3976aa;hpb=05b6ea1011e91d2cbc6f5fb6c8ca775e4a18e06f;p=web.mtrack diff --git a/MTrack/SCM/Git/CommitHookBridge.php b/MTrack/SCM/Git/CommitHookBridge.php index 2c5dee21..328c93b8 100644 --- a/MTrack/SCM/Git/CommitHookBridge.php +++ b/MTrack/SCM/Git/CommitHookBridge.php @@ -26,7 +26,7 @@ class MTrack_SCM_Git_CommitHookBridge extends IMTrackCommitHookBridge while (($line = fgets(STDIN)) !== false) { echo "got: $line\n"; list($old, $new, $ref) = explode(' ', trim($line), 3); - $this->branch = $ref; + $this->branch = preg_replace('#^refs/heads/#','', $ref); $this->commits[] = $new; if (preg_match('/^0+$/',$old)) {