diff --git a/relay.php b/relay.php index 9fb13fe..5effe9d 100644 --- a/relay.php +++ b/relay.php @@ -68,7 +68,7 @@ function verifyHeaders($received, $check, $name = "array") { // Grab repository info if (count($dc_hiddenreps) == 0 || !in_array($aPayload["repository"]["name"], $dc_hiddenreps)) { $sRepository = "[" . $aPayload["repository"]["name"]; - $sRepository .= ":" . $aPayload["repository"]["default_branch"] . "]"; + $sRepository .= ":" . str_replace("refs/head/", "", $aPayload["ref"]) . "]"; $sRepository .= " " . count($aCommits) . " new commit" . (count($aCommits) <= 1 ? "" : "s"); $sRepositoryUrl = $aPayload["repository"]["url"]; } else {