Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. GitBitbucketDriver.php

function GitBitbucketDriver::attemptCloneFallback

@phpstan-impure

Return value

true

Throws

\RuntimeException

1 call to GitBitbucketDriver::attemptCloneFallback()
GitBitbucketDriver::fetchWithOAuthCredentials in vendor/composer/composer/src/Composer/Repository/Vcs/GitBitbucketDriver.php
Get the remote content.

File

vendor/composer/composer/src/Composer/Repository/Vcs/GitBitbucketDriver.php, line 430

Class

GitBitbucketDriver
@author Per Bernhardt <plb@webfactory.de>

Namespace

Composer\Repository\Vcs

Code

protected function attemptCloneFallback() : bool {
    try {
        $this->setupFallbackDriver($this->generateSshUrl());
        return true;
    } catch (\RuntimeException $e) {
        $this->fallbackDriver = null;
        $this->io
            ->writeError('<error>Failed to clone the ' . $this->generateSshUrl() . ' repository, try running in interactive mode' . ' so that you can enter your Bitbucket OAuth consumer credentials</error>');
        throw $e;
    }
}
RSS feed
Powered by Drupal