Update app/Jobs/ApplicationDeploymentJob.php
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
bf00405971
commit
893093fad3
1 changed files with 1 additions and 1 deletions
|
|
@ -1905,7 +1905,7 @@ private function check_git_if_build_needed()
|
||||||
$output = $lsRemoteOutput->value();
|
$output = $lsRemoteOutput->value();
|
||||||
|
|
||||||
// Extract the line with the tab (actual ls-remote result)
|
// 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])) {
|
if (isset($matches[1])) {
|
||||||
$this->commit = $matches[1];
|
$this->commit = $matches[1];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue