Avoid transforming the origins when prompting for auth, fixes #8300
parent
a403ee9b0e
commit
f0d565bb6d
|
@ -193,7 +193,7 @@ class Git
|
|||
}
|
||||
}
|
||||
|
||||
$this->io->writeError(' Authentication required (<info>' . parse_url($url, PHP_URL_HOST) . '</info>):');
|
||||
$this->io->writeError(' Authentication required (<info>' . $match[2] . '</info>):');
|
||||
$auth = array(
|
||||
'username' => $this->io->ask(' Username: ', $defaultUsername),
|
||||
'password' => $this->io->askAndHideAnswer(' Password: '),
|
||||
|
|
|
@ -745,7 +745,7 @@ class RemoteFilesystem
|
|||
throw new TransportException("Invalid credentials for '" . $this->fileUrl . "', aborting.", $httpStatus);
|
||||
}
|
||||
|
||||
$this->io->writeError(' Authentication required (<info>'.parse_url($this->fileUrl, PHP_URL_HOST).'</info>):');
|
||||
$this->io->writeError(' Authentication required (<info>'.$this->originUrl.'</info>):');
|
||||
$username = $this->io->ask(' Username: ');
|
||||
$password = $this->io->askAndHideAnswer(' Password: ');
|
||||
$this->io->setAuthentication($this->originUrl, $username, $password);
|
||||
|
|
Loading…
Reference in New Issue