Skip to content

Commit

Permalink
Consolident function req. to just shell_exec
Browse files Browse the repository at this point in the history
  • Loading branch information
Steveorevo committed Oct 25, 2023
1 parent eb64902 commit 3ae4756
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/pluginable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 3ae4756

Please sign in to comment.