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)) {