From a88167aeacb4ff134c86e8cb49c718234e7ee20f Mon Sep 17 00:00:00 2001 From: Alexis Badel Date: Thu, 20 Jul 2023 16:46:37 +0200 Subject: [PATCH] fix: small issue with branch name --- relay.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relay.php b/relay.php index 5effe9d..e3c69ab 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 .= ":" . str_replace("refs/head/", "", $aPayload["ref"]) . "]"; + $sRepository .= ":" . str_replace("refs/heads/", "", $aPayload["ref"]) . "]"; $sRepository .= " " . count($aCommits) . " new commit" . (count($aCommits) <= 1 ? "" : "s"); $sRepositoryUrl = $aPayload["repository"]["url"]; } else {