Skip to content

Commit

Permalink
Don't run if code isn't there yet.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonpugh committed Sep 27, 2023
1 parent 2c75707 commit c69fc37
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -23,13 +23,17 @@ function devshop_bitbucket_hosting_task_update_status($task, $status) {
return;
}

if (!file_exists($task->ref->git_root)) {
return;
}

// Post a build status.
try {

$client = devshop_bitbucket_client();
$params = new stdClass();

$command = "git ls-remote origin {$task->ref->git_remote}";
$command = "git ls-remote origin {$task->ref->git_reference}";
list($sha, $null) = explode(' ', provision_process($command));

drush_log(dt('Found remote SHA of %sha for branch %ref with command: %command', [

0 comments on commit c69fc37

Please sign in to comment.