Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Update app/Jobs/ApplicationDeploymentJob.php

Andras Bacsai893093fad3cb
diff --git a/app/Jobs/ApplicationDeploymentJob.php b/app/Jobs/ApplicationDeploymentJob.php
index 8e5b32d1c0..4a849fccba 100644
--- a/app/Jobs/ApplicationDeploymentJob.php
+++ b/app/Jobs/ApplicationDeploymentJob.php
@@ -1905,7 +1905,7 @@ class ApplicationDeploymentJob implements ShouldBeEncrypted, ShouldQueue
$output = $lsRemoteOutput->value();
// Extract the line with the tab (actual ls-remote result)
- preg_match('/([0-9a-f]{40})\s*\t/', $output, $matches);
+ preg_match('/\b([0-9a-fA-F]{40})(?=\s*\t)/', $output, $matches);
if (isset($matches[1])) {
$this->commit = $matches[1];