Update GitRepository.php

This commit is contained in:
Bozhidar Slaveykov 2024-10-01 12:21:36 +03:00 committed by GitHub
parent aa2c3d3ee8
commit 5db9264ded
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -236,7 +236,7 @@ class GitRepository extends Model
shell_exec('mkdir -p ' . dirname($shellFile)); shell_exec('mkdir -p ' . dirname($shellFile));
shell_exec('chown '.$findHostingSubscription->system_username.':'.$findHostingSubscription->system_username.' -R ' . dirname(dirname($shellFile))); shell_exec('chown '.$findHostingSubscription->system_username.':'.$findHostingSubscription->system_username.' -R ' . dirname(dirname($shellFile)));
$shellContent = view('actions.git.clone-repo', [ $shellContent = view('actions.git.clone-repo-user', [
'gitProvider' => $gitSSHUrl['provider'], 'gitProvider' => $gitSSHUrl['provider'],
'systemUsername' => $findHostingSubscription->system_username, 'systemUsername' => $findHostingSubscription->system_username,
'gitRepositoryId' => $this->id, 'gitRepositoryId' => $this->id,