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();