mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-03 06:56:15 +00:00
fix importer
fix plugins on docker
This commit is contained in:
@ -265,3 +265,15 @@ function php_path(): ?string
|
||||
|
||||
return array_find($paths, fn ($path) => is_executable($path));
|
||||
}
|
||||
|
||||
function git_path(): ?string
|
||||
{
|
||||
$paths = [
|
||||
'/usr/local/bin/git',
|
||||
'/usr/bin/git',
|
||||
'/opt/homebrew/bin/git',
|
||||
trim((string) shell_exec('which git')),
|
||||
];
|
||||
|
||||
return array_find($paths, fn ($path) => is_executable($path));
|
||||
}
|
||||
|
Reference in New Issue
Block a user