composer: Configuration `http-basic` doesn't seem to work in all cases

With the following composer.json:

{
  "repositories": [
    {
      "type": "composer",
      "url": "https://composer.typo3.org/"
    },
    {
      "type": "vcs",
      "url": "https://sub.domain.com/git/xyz"
    }
  ],
  "require": {
    "typo3/cms": "^7.6.10",
    "vendor/extension": "dev-develop"
  },
  "extra": {
    "typo3/cms": {
      "cms-package-dir": "{$vendor-dir}/typo3/cms",
      "web-dir": "web"
    }
  }
}

And the following auth.json:

{
  "http-basic": {
    "sub.domain.com": {
      "username": "user",
      "password": "password"
    }
  }
}

When I run this command:

composer update -vvv

I get this output:

Reading ./composer.json
Loading config file /home/user/.composer/config.json
Loading config file /home/user/.composer/auth.json
Loading config file ./composer.json
Loading config file /var/www/html/auth.json
Reading /var/www/html/auth.json
Checked CA file /etc/ssl/certs/ca-certificates.crt: valid
Executing command (/var/www/html): git branch --no-color --no-abbrev -v
Executing command (/var/www/html): git describe --exact-match --tags
Executing command (/var/www/html): git log --pretty="%H" -n1 HEAD
Reading /home/user/.composer/composer.json
Loading config file /home/user/.composer/config.json
Loading config file /home/user/.composer/auth.json
Loading config file /home/user/.composer/composer.json
Loading config file /home/user/.composer/auth.json
Reading /home/user/.composer/auth.json
Reading /var/www/html/vendor/composer/installed.json
Reading /home/user/.composer/vendor/composer/installed.json
Loading plugin TYPO3\CMS\Composer\Installer\Plugin
Loading plugin TYPO3\ClassAliasLoader\Plugin
Loading composer repositories with package information
Downloading https://composer.typo3.org/packages.json
Writing /home/user/.composer/cache/repo/https---composer.typo3.org/packages.json into cache
Reading /home/user/.composer/cache/repo/https---composer.typo3.org/include-all$696fe823dea214c8bc4ec4550c84cd3a4aae245b.json from cache
Executing command (CWD): git ls-remote --heads 'https://sub.domain.com/git/xyz'
Executing command (CWD): p4 -p https://sub.domain.com/git/xyz info -s


  [InvalidArgumentException]
  No driver found to handle VCS repository https://sub.domain.com/git/xyz


Exception trace:
 () at phar:///usr/local/bin/composer/src/Composer/Repository/VcsRepository.php:125
 Composer\Repository\VcsRepository->initialize() at phar:///usr/local/bin/composer/src/Composer/Repository/ArrayRepository.php:185
 Composer\Repository\ArrayRepository->getPackages() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Pool.php:104
 Composer\DependencyResolver\Pool->addRepository() at phar:///usr/local/bin/composer/src/Composer/Installer.php:365
 Composer\Installer->doInstall() at phar:///usr/local/bin/composer/src/Composer/Installer.php:216
 Composer\Installer->run() at phar:///usr/local/bin/composer/src/Composer/Command/UpdateCommand.php:174
 Composer\Command\UpdateCommand->execute() at phar:///usr/local/bin/composer/vendor/symfony/console/Command/Command.php:259
 Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:844
 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:192
 Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:231
 Composer\Console\Application->doRun() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:123
 Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:104
 Composer\Console\Application->run() at phar:///usr/local/bin/composer/bin/composer:43
 require() at /usr/local/bin/composer:24

update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...

And I expected this to happen:

Reading ./composer.json
Loading config file /home/user/.composer/config.json
Loading config file /home/user/.composer/auth.json
Loading config file ./composer.json
Loading config file /var/www/html/auth.json
Reading /var/www/html/auth.json
Checked CA file /etc/ssl/certs/ca-certificates.crt: valid
Executing command (/var/www/html): git branch --no-color --no-abbrev -v
Executing command (/var/www/html): git describe --exact-match --tags
Executing command (/var/www/html): git log --pretty="%H" -n1 HEAD
Reading /home/user/.composer/composer.json
Loading config file /home/user/.composer/config.json
Loading config file /home/user/.composer/auth.json
Loading config file /home/user/.composer/composer.json
Loading config file /home/user/.composer/auth.json
Reading /home/user/.composer/auth.json
Reading /home/user/.composer/vendor/composer/installed.json
Loading composer repositories with package information
Downloading https://composer.typo3.org/packages.json
Writing /home/user/.composer/cache/repo/https---composer.typo3.org/packages.json into cache
Downloading https://composer.typo3.org/include/all%2405316128e003a9824d149c3475f2e2f680f88973.json
Writing /home/user/.composer/cache/repo/https---composer.typo3.org/include-all$05316128e003a9824d149c3475f2e2f680f88973.json into cache
Executing command (CWD): git ls-remote --heads 'https://user:***@sub.domain.com/git/xyz'
Executing command (/home/user/.composer/cache/vcs/https---composer-password-sub.domain.com-git-xyz/): git rev-parse --git-dir
Executing command (/home/user/.composer/cache/vcs/https---composer-password-sub.domain.com-git-xyz/): git remote -v
Executing command (/home/user/.composer/cache/vcs/https---composer-password-sub.domain.com-git-xyz/): git remote set-url origin 'https://user:***@sub.domain.com/git/xyz' && git remote update --prune origin
Executing command (/home/user/.composer/cache/vcs/https---composer-password-sub.domain.com-git-xyz/): git show-ref --tags
Executing command (/home/user/.composer/cache/vcs/https---composer-password-sub.domain.com-git-xyz/): git branch --no-color --no-abbrev -v
Executing command (/home/user/.composer/cache/vcs/https---composer-password-sub.domain.com-git-xyz/): git branch --no-color
Executing command (/home/user/.composer/cache/vcs/https---composer-password-sub.domain.com-git-xyz/): git show 'master':composer.json
Reading composer.json of https://composer:password@sub.domain.com/git/xyz (develop)
Reading /home/user/.composer/cache/repo/https---composer-password-sub.domain.com-git-xyz/7149d4e1e2a5cde176136b9f24ccd38adf79584b from cache
Importing branch develop (dev-develop)
Downloading https://packagist.org/packages.json
Writing /home/user/.composer/cache/repo/https---packagist.org/packages.json into cache
Updating dependencies (including require-dev)
Reading /home/user/.composer/cache/repo/https---packagist.org/p-provider-2013.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/p-provider-2014.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/p-provider-2015.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/p-provider-2015-10.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/p-provider-2016-01.json from cache
Downloading http://packagist.org/p/provider-2016-04%244c67d8cb5758950e862a6d3be159b1d4d3ef3c70c577ec5a5d94572392679ae1.json
Writing /home/user/.composer/cache/repo/https---packagist.org/p-provider-2016-04.json into cache
Downloading http://packagist.org/p/provider-2016-07%2403b768cbef5b61fa3ba1fcb31c1d89451c49c218322964b2fa886ea5b6720c21.json
Writing /home/user/.composer/cache/repo/https---packagist.org/p-provider-2016-07.json into cache
Reading /home/user/.composer/cache/repo/https---packagist.org/p-provider-archived.json from cache
Downloading http://packagist.org/p/provider-latest%2491b5dc86043b10e1e8a52cdaf1179c089093fc4993561b31b8d2d0c5aad582e1.json
Writing /home/user/.composer/cache/repo/https---packagist.org/p-provider-latest.json into cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-cogpowered$finediff.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-doctrine$instantiator.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-mso$idna-convert.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-pear$http-request2.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-psr$http-message.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-psr$log.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-swiftmailer$swiftmailer.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-symfony$console.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-symfony$finder.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$class-alias-loader.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-composer-installers.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-pear$net-url2.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-pear$pear-exception.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-core.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-about.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-aboutmodules.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-adodb.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-backend.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-belog.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-beuser.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-context-help.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-cshmanual.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-css-styled-content.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-dbal.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-documentation.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-extbase.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-extensionmanager.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-feedit.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-felogin.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-filelist.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-filemetadata.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-fluid.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-fluid-styled-content.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-form.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-frontend.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-func.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-func-wizards.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-impexp.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-indexed-search.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-indexed-search-mysql.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-info.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-info-pagetsconfig.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-install.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-lang.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-linkvalidator.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-lowlevel.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-opendocs.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-recordlist.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-recycler.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-reports.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-rsaauth.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-rtehtmlarea.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-saltedpasswords.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-scheduler.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-setup.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-sv.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-sys-action.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-sys-note.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-t3editor.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-t3skin.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-taskcenter.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-tstemplate.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-version.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-viewpage.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-wizard-crpages.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-wizard-sortpages.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-typo3$cms-workspaces.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-helhum$class-alias-loader.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-composer$installers.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-lw$typo3cms-installers.json from cache
Reading /home/user/.composer/cache/repo/https---packagist.org/provider-netresearch$composer-installers.json from cache
Resolving dependencies through SAT
Dependency resolution completed in 0.009 seconds
Analyzed 22534 packages to resolve dependencies
Analyzed 563 rules to resolve dependencies
  - Installing typo3/cms-composer-installers (1.3.1)
Reading /home/user/.composer/cache/files/typo3/cms-composer-installers/8845c14dfdc9be478ac49e8ce8099b6effe18a4d.zip from cache
    Loading from cache
    Extracting archive
Executing command (CWD): unzip '/var/www/html/vendor/typo3/cms-composer-installers/51de31d76b3c1ae4fbfff27d50481eb0' -d '/var/www/html/vendor/composer/b87a1dd8' && chmod -R u+w '/var/www/html/vendor/composer/b87a1dd8'

Loading plugin TYPO3\CMS\Composer\Installer\Plugin
    REASON: typo3/cms 7.6.10 requires typo3/cms-composer-installers ^1.2.8 -> satisfiable by typo3/cms-composer-installers[1.2.8, 1.3.0, 1.3.1].

  - Installing typo3/class-alias-loader (1.0.0)
Reading /home/user/.composer/cache/files/typo3/class-alias-loader/0953227d00d8b6708ad393ec3398cbbbb293b4d4.zip from cache
    Loading from cache
    Extracting archive
Executing command (CWD): unzip '/var/www/html/vendor/typo3/class-alias-loader/08b125c4435e61d709e0e3c3a20493b7' -d '/var/www/html/vendor/composer/57d64ccb' && chmod -R u+w '/var/www/html/vendor/composer/57d64ccb'

Loading plugin TYPO3\ClassAliasLoader\Plugin
    REASON: typo3/cms 7.6.10 requires typo3/class-alias-loader ^1.0 -> satisfiable by typo3/class-alias-loader[1.0.0].

  - Installing symfony/finder (v2.7.15)
Reading /home/user/.composer/cache/files/symfony/finder/9f63bc7c86320cf9ae7e687617af9c979acc20ca.zip from cache
    Loading from cache
    Extracting archive
Executing command (CWD): unzip '/var/www/html/vendor/symfony/finder/255e00704655534dfcf82a76a17d659a' -d '/var/www/html/vendor/composer/6623178b' && chmod -R u+w '/var/www/html/vendor/composer/6623178b'

    REASON: typo3/cms 7.6.10 requires symfony/finder ~2.7.0 -> satisfiable by symfony/finder[v2.7.0, v2.7.1, v2.7.10, v2.7.11, v2.7.12, v2.7.13, v2.7.14, v2.7.15, v2.7.2, v2.7.3, v2.7.4, v2.7.5, v2.7.6, v2.7.7, v2.7.8, v2.7.9].

  - Installing symfony/console (v2.7.15)
Reading /home/user/.composer/cache/files/symfony/console/e82ab5241dadc90442a603f514aa604ef7306519.zip from cache
    Loading from cache
    Extracting archive
Executing command (CWD): unzip '/var/www/html/vendor/symfony/console/b9f8fb436540f3ef49442980e690219b' -d '/var/www/html/vendor/composer/463b5937' && chmod -R u+w '/var/www/html/vendor/composer/463b5937'

    REASON: typo3/cms 7.6.10 requires symfony/console ~2.7.0 -> satisfiable by symfony/console[v2.7.0, v2.7.1, v2.7.10, v2.7.11, v2.7.12, v2.7.13, v2.7.14, v2.7.15, v2.7.2, v2.7.3, v2.7.4, v2.7.5, v2.7.6, v2.7.7, v2.7.8, v2.7.9].

  - Installing swiftmailer/swiftmailer (v5.4.3)
Reading /home/user/.composer/cache/files/swiftmailer/swiftmailer/9e80c5f591b9fa18f3339b53d363134f0f8a2ec4.zip from cache
    Loading from cache
    Extracting archive
Executing command (CWD): unzip '/var/www/html/vendor/swiftmailer/swiftmailer/d639ab5ffc38f3f986970d953b6c0995' -d '/var/www/html/vendor/composer/6b63f170' && chmod -R u+w '/var/www/html/vendor/composer/6b63f170'

    REASON: typo3/cms 7.6.10 requires swiftmailer/swiftmailer ~5.4.1 -> satisfiable by swiftmailer/swiftmailer[v5.4.1, v5.4.2, v5.4.3].

  - Installing psr/log (1.0.0)
Reading /home/user/.composer/cache/files/psr/log/566a6d690c0340b7292a7eb95b91042cf8524c40.zip from cache
    Loading from cache
    Extracting archive
Executing command (CWD): unzip '/var/www/html/vendor/psr/log/b6a7a5f667d250a2d785a5a5a9f77cb4' -d '/var/www/html/vendor/composer/d9846c3e' && chmod -R u+w '/var/www/html/vendor/composer/d9846c3e'

    REASON: typo3/cms 7.6.10 requires psr/log 1.0.*@dev -> satisfiable by psr/log[1.0.0].

  - Installing psr/http-message (1.0)
Reading /home/user/.composer/cache/files/psr/http-message/2e4aabdca823b6617c6eb76499f028c27bdf1654.zip from cache
    Loading from cache
    Extracting archive
Executing command (CWD): unzip '/var/www/html/vendor/psr/http-message/0152ae2721892bb5cc101eb527dcbb83' -d '/var/www/html/vendor/composer/01e693fa' && chmod -R u+w '/var/www/html/vendor/composer/01e693fa'

    REASON: typo3/cms 7.6.10 requires psr/http-message ~1.0 -> satisfiable by psr/http-message[1.0].

  - Installing pear/pear_exception (v1.0.0)
Reading /home/user/.composer/cache/files/pear/pear_exception/ee942c206e4b6f0a9b5117d58f6df39a8f3aabce.zip from cache
    Loading from cache
    Extracting archive
Executing command (CWD): unzip '/var/www/html/vendor/pear/pear_exception/88a2f5573ce69901d2806ae34bb18a47' -d '/var/www/html/vendor/composer/562b27f8' && chmod -R u+w '/var/www/html/vendor/composer/562b27f8'

    REASON: pear/http_request2 v2.2.1 requires pear/pear_exception * -> satisfiable by pear/pear_exception[v1.0.0].

  - Installing pear/net_url2 (v2.2.1)
Reading /home/user/.composer/cache/files/pear/net_url2/106dc67c7b1b0070f3e5302aef6ca702a1ac8e32.zip from cache
    Loading from cache
    Extracting archive
Executing command (CWD): unzip '/var/www/html/vendor/pear/net_url2/e29cbeb6211988ab4755af5aa7131566' -d '/var/www/html/vendor/composer/8e607b25' && chmod -R u+w '/var/www/html/vendor/composer/8e607b25'

    REASON: pear/http_request2 v2.2.1 requires pear/net_url2 >=2.0.0 -> satisfiable by pear/net_url2[v2.0.1, v2.0.10, v2.0.11, v2.0.12, v2.0.2, v2.0.3, v2.0.4, v2.0.5, v2.0.6, v2.0.7, v2.0.8, v2.0.9, v2.1.0, v2.1.1, v2.1.2, v2.2.0, v2.2.1].

  - Installing pear/http_request2 (v2.2.1)
Reading /home/user/.composer/cache/files/pear/http_request2/5a1fb11515106ee3db89b26fddb06eb0de88c473.zip from cache
    Loading from cache
    Extracting archive
Executing command (CWD): unzip '/var/www/html/vendor/pear/http_request2/74f903f89c2ce5bef96302de20c161fc' -d '/var/www/html/vendor/composer/046ef400' && chmod -R u+w '/var/www/html/vendor/composer/046ef400'

    REASON: typo3/cms 7.6.10 requires pear/http_request2 ~2.2.1 -> satisfiable by pear/http_request2[v2.2.1].

  - Installing mso/idna-convert (v0.9.1)
Reading /home/user/.composer/cache/files/mso/idna-convert/c60339b8780fc443cff59409e96ad8ddce9f0706.zip from cache
    Loading from cache
    Extracting archive
Executing command (CWD): unzip '/var/www/html/vendor/mso/idna-convert/0a66a5d5057a5cf39ab62764efd32eef' -d '/var/www/html/vendor/composer/5673cadd' && chmod -R u+w '/var/www/html/vendor/composer/5673cadd'

    REASON: typo3/cms 7.6.10 requires mso/idna-convert ^0.9.1 -> satisfiable by mso/idna-convert[v0.9.1].

  - Installing doctrine/instantiator (1.0.5)
Reading /home/user/.composer/cache/files/doctrine/instantiator/5a9f1d3bceb2a0d9cec46038ba4d17116a431241.zip from cache
    Loading from cache
    Extracting archive
Executing command (CWD): unzip '/var/www/html/vendor/doctrine/instantiator/3430d19b3a0fea71d6f2e4749ae3f4da' -d '/var/www/html/vendor/composer/65991083' && chmod -R u+w '/var/www/html/vendor/composer/65991083'

    REASON: typo3/cms 7.6.10 requires doctrine/instantiator ~1.0.4 -> satisfiable by doctrine/instantiator[1.0.4, 1.0.5].

  - Installing cogpowered/finediff (0.3.1)
Reading /home/user/.composer/cache/files/cogpowered/finediff/0c42b219c29899f1a97db2581f8f4fddeebb5244.zip from cache
    Loading from cache
    Extracting archive
Executing command (CWD): unzip '/var/www/html/vendor/cogpowered/finediff/0efd3fdec695edf0acdf9cc8be4d841b' -d '/var/www/html/vendor/composer/4cdd7c08' && chmod -R u+w '/var/www/html/vendor/composer/4cdd7c08'

    REASON: typo3/cms 7.6.10 requires cogpowered/finediff ~0.3.1 -> satisfiable by cogpowered/finediff[0.3.1].

  - Installing typo3/cms (7.6.10)
Reading /home/user/.composer/cache/files/typo3/cms/4dcd51f8f5c082f6e8333365351bbb38a599438f.zip from cache
    Loading from cache
    Extracting archive
Executing command (CWD): unzip '/var/www/html/vendor/typo3/cms/1139c0c15fd203b5c093ec5c51a6eae4' -d '/var/www/html/vendor/composer/0a5c2994' && chmod -R u+w '/var/www/html/vendor/composer/0a5c2994'

    REASON: Required by the root package: Install command rule (install typo3/cms 7.6.10|install typo3/cms 7.6.9)

  - Installing vendor/extension (dev-develop 7149d4e)
Executing command (CWD): git --version
    Cloning to cache at '/home/user/.composer/cache/vcs/https---composer-password-sub.domain.com-git-xyz/'
Executing command (/home/user/.composer/cache/vcs/https---composer-password-sub.domain.com-git-xyz/): git rev-parse --git-dir
Executing command (/home/user/.composer/cache/vcs/https---composer-password-sub.domain.com-git-xyz/): git remote -v
Executing command (/home/user/.composer/cache/vcs/https---composer-password-sub.domain.com-git-xyz/): git remote set-url origin 'https://user:***@sub.domain.com/git/xyz' && git remote update --prune origin
    Cloning 7149d4e1e2a5cde176136b9f24ccd38adf79584b from cache
Executing command (CWD): git clone --no-checkout 'https://user:***@sub.domain.com/git/xyz' '/var/www/html/web/typo3conf/ext/content' --dissociate --reference '/home/user/.composer/cache/vcs/https---composer-password-sub.domain.com-git-xyz/' && cd '/var/www/html/web/typo3conf/ext/content' && git remote add composer 'https://user:***@sub.domain.com/git/xyz' && git fetch composer
Executing command (/var/www/html/web/typo3conf/ext/content): git branch -r
Executing command (/var/www/html/web/typo3conf/ext/content): git checkout 'develop' --
Executing command (/var/www/html/web/typo3conf/ext/content): git checkout -B 'develop' 'composer/develop' --
Executing command (/var/www/html/web/typo3conf/ext/content): git reset --hard '7149d4e1e2a5cde176136b9f24ccd38adf79584b' --

    REASON: Required by the root package: Install command rule (install vendor/extension dev-develop)

symfony/console suggests installing symfony/event-dispatcher ()
symfony/console suggests installing symfony/process ()
typo3/cms suggests installing ext-mysqli ()
Reading /var/www/html/vendor/composer/installed.json
Executing command (/var/www/html/web/typo3conf/ext/content): git log -n1 --pretty=%ct '7149d4e1e2a5cde176136b9f24ccd38adf79584b'
Writing lock file
Generating autoload files
Reading /var/www/html/vendor/typo3/cms/composer.json
Inserting TYPO3_COMPOSER_MODE constant

Which is the result of composer update -vvv by using the following composer.json:

{
  "repositories": [
    {
      "type": "composer",
      "url": "https://composer.typo3.org/"
    },
    {
      "type": "vcs",
      "url": "https://user:password@sub.domain.com/git/xyz"
    }
  ],
  "require": {
    "typo3/cms": "^7.6.10",
    "vendor/extension": "dev-develop"
  },
  "extra": {
    "typo3/cms": {
      "cms-package-dir": "{$vendor-dir}/typo3/cms",
      "web-dir": "web"
    }
  }
}

PS: When I do a git ls-remote --heads 'https://sub.domain.com/git/xyz' I get a prompt for the credentials.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 17 (9 by maintainers)

Commits related to this issue

Most upvoted comments

Without patch:

[rob@vps422 tmp]$ composer/bin/composer install
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
Loading composer repositories with package information
Warning: Accessing git.robbast.nl over http which is an insecure protocol.


  [RuntimeException]                                                                                                                               
  Failed to execute git clone --mirror 'http://git.robbast.nl/repo/test.git' '/home/rob/.composer/cache/vcs/http---git.robbast.nl-repo-test.git/'  
  error: The requested URL returned error: 401 Unauthorized while accessing http://git.robbast.nl/repo/test.git/info/refs                          
  fatal: HTTP request failed                                                                                                                       


install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] [<packages>]...

With patch:

[rob@vps422 tmp]$ composer/bin/composer install
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
Loading composer repositories with package information
Warning: Accessing git.robbast.nl over http which is an insecure protocol.
Updating dependencies (including require-dev)                             
  - Installing composer/test-basic-http-auth (1.0.0)
    Cloning e1c57b234acdd5cbed717e97477a8b5f86615ca4

Writing lock file
Generating autoload files

You can register it as a type: git explicitly instead of relying on the detection of the VCS driver.

The URL ending with .git will be detected as supported by the GitDriver automatically with the regex (composer assumes that you will not have the weird idea of creating a URL https://sub.domain.com/git/xyz.git to expose a SVN repo). The other URL cannot be detected this way, so it will rely on the full detection, which involves running git ls-remote --heads <url>. But this will indeed fail in your case because of the missing credentials and so the detection will not detect it as a git repo.

You can either use the .git extension in the URL if your server support it, or specify the driver type explicitly.