1
0
Fork 0
pull/4623/head
Jordi Boggiano 2015-11-21 21:51:43 +00:00
parent a10bffec0e
commit 020c126c27
5 changed files with 12 additions and 13 deletions

View File

@ -19,6 +19,7 @@ use Composer\Json\JsonFile;
use Composer\Downloader\TransportException;
use Composer\Util\RemoteFilesystem;
use Composer\Util\GitLab;
/**
* Driver for GitLab API, use the Git driver for local checkouts.
*
@ -260,7 +261,6 @@ class GitLabDriver extends VcsDriver
protected function attemptCloneFallback()
{
try {
// If this repository may be private and we
// cannot ask for authentication credentials (because we

View File

@ -88,7 +88,6 @@ class Git
if ($bypassSshForGitHub || 0 !== $this->process->execute($command, $ignoredOutput, $cwd)) {
// private github repository without git access, try https with auth
if (preg_match('{^git@'.self::getGitHubDomainsRegex($this->config).':(.+?)\.git$}i', $url, $match)) {
if (!$this->io->hasAuthentication($match[1])) {
$gitHubUtil = new GitHub($this->io, $this->config, $this->process);
$message = 'Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private repos';

View File

@ -3,8 +3,8 @@
/*
* This file is part of Composer.
*
* (c) Roshan Gautam <roshan.gautam@hotmail.com>
*
* (c) Nils Adermann <naderman@naderman.de>
* Jordi Boggiano <j.boggiano@seld.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.