From a8c3a2d991b698391cfa77e497ff81247581a777 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Wed, 29 May 2024 10:43:57 +0200 Subject: [PATCH] Refactor git commands in ApplicationDeploymentJob.php --- app/Jobs/ApplicationDeploymentJob.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/Jobs/ApplicationDeploymentJob.php b/app/Jobs/ApplicationDeploymentJob.php index 2cd359334..4fe1ccda9 100644 --- a/app/Jobs/ApplicationDeploymentJob.php +++ b/app/Jobs/ApplicationDeploymentJob.php @@ -1195,7 +1195,6 @@ private function check_git_if_build_needed() ], ); } - ray("GIT_SSH_COMMAND=\"ssh -o ConnectTimeout=30 -p {$this->customPort} -o Port={$this->customPort} -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null\" git ls-remote {$this->fullRepoUrl} {$local_branch}"); if ($this->saved_outputs->get('git_commit_sha') && !$this->rollback) { $this->commit = $this->saved_outputs->get('git_commit_sha')->before("\t"); $this->application_deployment_queue->commit = $this->commit; @@ -1211,7 +1210,6 @@ private function clone_repository() if ($this->pull_request_id !== 0) { $this->application_deployment_queue->addLogEntry("Checking out tag pull/{$this->pull_request_id}/head."); } - ray($importCommands); $this->execute_remote_command( [ $importCommands, "hidden" => true @@ -1225,8 +1223,6 @@ private function clone_repository() "save" => "commit_message" ] ); - ray($this->saved_outputs->get('commit_message')); - raY($this->commit); if ($this->saved_outputs->get('commit_message')) { $commit_message = str($this->saved_outputs->get('commit_message'))->limit(47); $this->application_deployment_queue->commit_message = $commit_message->value();