mirror of
https://we.phorge.it/source/arcanist.git
synced 2025-02-27 22:19:28 +01:00
(stable) Promote 2016 Week 7
This commit is contained in:
commit
ed476cf848
1 changed files with 14 additions and 2 deletions
|
@ -128,10 +128,22 @@ final class ArcanistGitLandEngine
|
||||||
pht('FETCH'),
|
pht('FETCH'),
|
||||||
pht('Fetching %s...', $ref));
|
pht('Fetching %s...', $ref));
|
||||||
|
|
||||||
$api->execxLocal(
|
// NOTE: Although this output isn't hugely useful, we need to passthru
|
||||||
'fetch -- %s %s',
|
// instead of using a subprocess here because `git fetch` may prompt the
|
||||||
|
// user to enter a password if they're fetching over HTTP with basic
|
||||||
|
// authentication. See T10314.
|
||||||
|
|
||||||
|
$err = $api->execPassthru(
|
||||||
|
'fetch --quiet -- %s %s',
|
||||||
$this->getTargetRemote(),
|
$this->getTargetRemote(),
|
||||||
$this->getTargetOnto());
|
$this->getTargetOnto());
|
||||||
|
|
||||||
|
if ($err) {
|
||||||
|
throw new ArcanistUsageException(
|
||||||
|
pht(
|
||||||
|
'Fetch failed! Fix the error and run "%s" again.',
|
||||||
|
'arc land'));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private function updateWorkingCopy() {
|
private function updateWorkingCopy() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue