From 3ae47561e1bfee526056f4e8e5517759d8201608 Mon Sep 17 00:00:00 2001 From: Stephen J Carnam Date: Tue, 24 Oct 2023 19:04:52 -0700 Subject: [PATCH] Consolident function req. to just shell_exec --- hooks/pluginable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/pluginable.php b/hooks/pluginable.php index c862a02..8b9b250 100644 --- a/hooks/pluginable.php +++ b/hooks/pluginable.php @@ -601,7 +601,7 @@ public function find_latest_repo_tag( $url ) { // Execute the git ls-remote command $command = "git ls-remote --tags --sort=\"version:refname\" $url"; - exec($command, $output); + $output = explode( PHP_EOL, shell_exec( $command ) ); // Extract the last column into an array $tags = array();