Details
-
Bug
-
Resolution: Fixed
-
Medium
Description
Randoms authentication fails on using composer from private repository using OAuth2.
#!shell Checking out <xxxcommit> Update failed (Failed to execute git remote set-url composer 'https://x-token-auth:***@bitbucket.org/neoacevedo/repo.git' && git rev-parse --quiet --verify '<hash>^{commit}' || (git fetch composer && git fetch --tags composer) remote: Invalid username or password. If your organization manages your account or you've enabled two-step verification, create an app password to log in: https://confluence.atlassian.com/x/9DJmMQ fatal:***@bitbucket.org/neoacevedo/repo.git/' ) Would you like to try reinstalling the package instead [yes]? - Removing neoacevedo/repo (dev-branch) - Installing neoacevedo/repo (dev-branch <xxxcommit>): Cloning <xxxcommit> from cache <hash> is gone (history was rewritten?) Failed to download neoacevedo/repo from source: Failed to execute git checkout '<hash>' -- && git reset --hard '<hash>' -- fatal: reference is not a tree: <hash> Now trying to download from dist - Installing neoacevedo/repo (dev-branch < xxxcommit>): Downloading (connecting...) [Composer\Downloader\TransportException] Could not authenticate against bitbucket.org update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [--with-dependencies] [--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...